Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

General Questions • [Software] nul characters in text files

$
0
0
I've been working with Linux for years. This is the first time that I've run into this problem. If I vi file test it does not contain nul characters. If I cat test > test1 and vi teset1 it does not contain nuls. But if I cat test |cut-k 270-290 > test3. The file test3 has a nul character between every ascii character. The field I'm trying to cut is 12/03/2024 which is 10 characters. But to get the entire date I have to cut 20 characters.
Why am I all of a sudden getting all of these nuls in my output.

Statistics: Posted by rac8006 — 2024-09-01 19:41



Viewing all articles
Browse latest Browse all 2901

Trending Articles