Search Results

Search: Posts Made By: digitalnirvana
2,096
Posted By Don Cragun
As long as the NUL bytes are field terminators...
As long as the NUL bytes are field terminators (not field separators) and there are 80 fields per record, the following will add a <newline> character at the end of each input record in the file...
2,096
Posted By RudiC
The *nix text utilities are NOT the best to deal...
The *nix text utilities are NOT the best to deal with binary files like the one that you post. Would this come close to what you need?
sed 's/\o000/&\n/162;s/\o000/&\n/81'...
2,096
Posted By RudiC
split -C might not be the perfect fit but...
split -C might not be the perfect fit but something to look into. Or, try
sed 's/./&\n/480;s/./&\n/400;s/./&\n/320;s/./&\n/240;s/./&\n/160;s/./&\n/80;' file
2,096
Posted By RudiC
Looks like I've misread/misinterpreted your...
Looks like I've misread/misinterpreted your specification. Sorry for that.
So, in your picture, we're seeing many empty fields (e.g. 15 after the first), 81 fields make up a record of unpredictable...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 06:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy