> Others have given working examples, but just for completeness and for > showing off my nerdyness, another solution for bash and on systems > with perl installed: > > perl -pi -e "s/\r//" `find .` > > The shell will expand the `find .` to a list of all files and > directories in the current directory and below, and then execute the > regex in-place on all those files. > (this is for converting from windows to unix, for the other way around > replace the regex with "s/\r\n/\n/") > Disclaimer: it's just from memory, I haven't tested it but I used to > use this method or a slight variation thereof. > > Variant: if you only want to process .html files, change it to > > perl -pi -e "s/\r//" `find . | grep html` > > or more precisely > > perl -pi -e "s/\r//" `find . | grep -e 'html$'`
Very nice! Thanks for the information. ------------- Ehsan Akhgari Farda Technology (http://www.farda-tech.com/) List Owner: [EMAIL PROTECTED] [ Email: [EMAIL PROTECTED] ] [ WWW: http://www.beginthread.com/Ehsan ] I cook every chance in my pot. And only when it has been quite cooked do I welcome it as my food. -Thus Spoke Zarathustra, F. W. Nietzsche
