Hi, I have been copying text files between Windows XP and Unix (AIX) Systems over the last few days at office and i find ^M characters at the end of each line. I figured after googling that this was due to the fact that windows and unix use different characters for new line. Now I had to replace these chars in Unix. I found the way to do it using vi, but couldnt find a way to like do for a number of files all at once. Any solutions?? The way to do it using vi was with the following command in vi. :%sCtrl-V Ctrl-M//g
Why is it that the two OSes use different new line characters. And is there a way for me to prevent it at the source end i.e. at Windows level only. I use notepad in windows. Since i access the unix system through ssh, so vi is probably the only option I have, cant use gedit or something. -- Puneet -- Puneet _______________________________________________ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - September 28-29, 2007 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/