Originally posted by jewilson2
Thanks for the reply. I put this in a shell script and executed....it's output was the same as it's input. What am I missing?
split -b 94 /s0b0/tmp/achtape "94." && cat 94.* > /s0b0/tmp/achtape.split
The above command is splitting the file into 94 byte (character) chunks, which are output to individual files and then concatanated together again into a newfile. You need to introdue a newline character to the end of each file.
You could do this as below...
split -b 94 yourFile "94." && for splitFile in 94.*
echo "$(cat $splitFile)"
done > newFile
...or use an editor like sed...
/g' yourFile > newFile