From: Murat SULUHAN (murat.suluhan@tesam.com.tr)
Date: Fri 23 Mar 2001 - 19:04:12 EET
Removing ^M from your files
Doesnt it just drive you nuts to edit a file in Windows 95 or Windows 98,
and have a ^M at the end of each line ? Well with the following
information, we can remove that.
Do the following :
'perl -i.bak -npe 's/\r\n/\n/g' <file>'
Notes :
where <file> is the name of the file you want to "clean".
The original file is copied to <file>.bak...
Thats all there is to it... nothing fancy.
Kaynak www.defcon1.org FreeBSD uzerine bir site
--------------------------------
|
| Murat SULUHAN
| TE.SA.M. T.U.R.K. / GLOBALSTAR
|
--------------------------------
Listeden cikmak icin:
unsub linux
mesajini listeci@bilkent.edu.tr adresine gonderiniz.
Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
Listeci arayuzu: http://listweb.bilkent.edu.tr/yardim/bilkent/linux.html
Liste arsivinin adresi: http://listweb.bilkent.edu.tr/