Search Results

Search: Posts Made By: cheeko111
2,314
Posted By cheeko111
works for me....thank you !
works for me....thank you !
2,314
Posted By cheeko111
cat works to pass in the contents for this.... ...
cat works to pass in the contents for this....
cat data.txt | awk 'length==19{print}'

how do I pass in the contents for this statement...?

{if (length() == 880)
print > "valid.file";
else ...
2,314
Posted By cheeko111
how do I pass in the contents of the datafile ?
how do I pass in the contents of the datafile ?
2,314
Posted By cheeko111
example...any line that has 50 chars goes in one...
example...any line that has 50 chars goes in one file, everything else goes in the other

HEADER
12345678901234567890123456789012345678901234567890
123456 John Doe 1 Main St ...
2,314
Posted By cheeko111
parsing file based on characters/bytes
I have a datafile that is formatted as fixed.
I know that each line should contain 880 characters.
I want to separate the file into 2 files, one that has lines with 880 characters and the other...
Showing results 1 to 5 of 5

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