When opening Apple MAC documents that have been created on OS 9 vi reports that the line is to long. The Mac files have no line feed character and to vi the file appears to be one long line. <br>
I've tried using sed to modify the file and add a line feed but I cannot get the line feed character in. When I used Ctrl v j all I get from unix is a new line, I've tried using a script <br>
#!/bin/sh<br>
<br>
sed 's/ctrl v m/ ctrl v <br>
j /' $1 $2<br>
<br>
where $1 = file $2 =newfile<br>
but it wont work - it might be me of course<br>
<br>
so is there anyway to change ^M to ^M^J in a file - or AITDTWWC<br>
<br>
Thanks in anticipation <br>
Gordon<br>
Sorry shodan81<br>
I've tried using sed to modify the file and add a line feed but I cannot get the line feed character in. When I used Ctrl v j all I get from unix is a new line, I've tried using a script <br>
#!/bin/sh<br>
<br>
sed 's/ctrl v m/ ctrl v <br>
j /' $1 $2<br>
<br>
where $1 = file $2 =newfile<br>
but it wont work - it might be me of course<br>
<br>
so is there anyway to change ^M to ^M^J in a file - or AITDTWWC<br>
<br>
Thanks in anticipation <br>
Gordon<br>
Sorry shodan81<br>