On Thursday 14 February 2002 05:17, Franki wrote:
> Hi all,
>
> I have many perl scripts in a directory that all contain windows control
> characters..
>
> I would like to make a shell script or something that will go through
> all the files in a directory, (and any sub directores)
> grep every file for ^M characters and swap them for their unix
> equivalent....
>
> has anyone ever done this?

Someone apparently did. Often enough to write a standard utility called 
dos2unix ... <g>

http://rpmfind.net/linux/rpm2html/search.php?query=dos2unix

there is also a unix2dos package to go with it


-- 
Michel Clasquin, D Litt et Phil (Unisa)
[EMAIL PROTECTED]/unisa.ac.za   http://www.geocities.com/clasqm
This message was posted from a Microsoft-free PC

...hey, at least a wild goose chase gives you some exercise-Neal Stephenson



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to