> i am using,
>
> perl -e s/\\r/\\$/g filename, it's not working. please suggest the me.
You're not asking for this, but please be aware what you're doing:
- your question is totally unrelated to LWP
- programming is not a trick, but a profession. complain to your boss
if you're doing this for work
- learn Perl! there are some good books and sites for beginners
- you could have used the Web to solve this, e.g. it took me 10 seconds
to find
http://userpage.chemie.fu-berlin.de/~winkelma/Misc/Perl/Scripts/Dos-Unix/
- try
perl -0pe 's/\r\n/\n/g' filename > converted
--
Reinier Post