Hi all,
I need some help with inserting a line feed character to a data file.
Basically, I have a file on a MAC (OS9) which has special characters. When I ftp this file to Unix in Binary mode, and then try to open the file using VI .. I get the message that file cannot be opened as the line is too long !!
I had a quick look at the file by running 'cat -vet filename | pg' to display non-printable control characters and each line had a ^M but no line feed !!
How can I insert a line feed to each line of the data file ??
Thanks in advance.
PS. I do not have perl, so I need a straight Unix solution.
Thanks
I need some help with inserting a line feed character to a data file.
Basically, I have a file on a MAC (OS9) which has special characters. When I ftp this file to Unix in Binary mode, and then try to open the file using VI .. I get the message that file cannot be opened as the line is too long !!
I had a quick look at the file by running 'cat -vet filename | pg' to display non-printable control characters and each line had a ^M but no line feed !!
How can I insert a line feed to each line of the data file ??
Thanks in advance.
PS. I do not have perl, so I need a straight Unix solution.
Thanks