-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

,--[ On Saturday 15 Sep 2007, Puneet Lakhina wrote:
| Hi,

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

Try dos2unix and unix2dos utilities to convert text files.

| Why is it that the two OSes use different new line characters. And is there

See, http://en.wikipedia.org/wiki/Newline

| 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
`--

Ashish Shukla
- -- 
Ashish Shukla "Wah Java !!"
आशीष शुक्ल

weblog: http://wahjava.wordpress.com/

  ,= ,-_-. =.  | The  desire  to  be  rewarded  for one's  creativity  does |
 ((_/)o o(\_)) | not  justify depriving  the world  in  general of  all  or |
  `-'(. .)`-'  | part  of that  creativity.                                 |
      \_/      |                            - Richard M. Stallman           |

We've so many people in India, that we're able to route each network packet
manually.
             - nobotz to wahjava

  ------------------------------------------------------------------------
   Freed.in | Freedom in technology & software | http://freed.in/register
  ------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFG64esHy+EEHYuXnQRAm+SAKDbyyTVKfIeknId95da7mEzZvGgPwCgn2Nd
qJDeM/NDW9nCZ5t3zXzYWQ0=
=lfkf
-----END PGP SIGNATURE-----

_______________________________________________
ilugd mailinglist -- [email protected]
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/[email protected]/

Reply via email to