I need to replace the line feed (not Ctrl M, but I think it is Ctrl J, it shows as a $ sign if you set the set list option on when viewing the file) character with ,line feed. It's a big file
I have tried the tr command with
tr -s "\012" "\054\012" <filein >fileout
This gave me a file replacing converting all records into a big single record replacing the linefeed with commas!
When I tried the vi, and used the command level :s command, as soon as I type the Ctrl V Ctrl J sequence it escapes the command level and comes back with no matching pattern error.
I can import the file into m/s word and then use the replace ^p with ,^p and then upload it to Unix and it will work, but I was trying to avoid that extra work. I have used tr command to replace the Ctrl M with line feed tr -s "\015" "\012" but I am not having much success replacing a single character with mutiple characters using the tr or any other command in vi that I am aware of.
Your response will be greatly appreciated.
Thanks,
Oak
603-230-1160 (CRHC)
860-945-6780 (when working remotely)
203-982-6463 (New Pager eff 10/10/2001)
Received on Tue Oct 16 2001 - 18:20:50 NZDT