$ find . -type f -exec dos2unix {} \;
Remember to install dos2unix first
Related posts:
This is how you avoid converting every file. You can use regular expressions to filter the files you wish to convert. My example is what i used to convert all of my PHP files to Unix.
find . -name \*.php -exec /usr/bin/dos2unix ‘{}’ \;
For more information you can visit this site: http://tinyurl.com/p3gzpc
I found this worked
$ find . -type f -exec dos2unix {} {} \;
Will convert the original file, keep the name
the
just displays the file in unix format in solaris
Didn’t really work very well for me. I used the following command instead:
$ dos2unix `find ./ -type f`
(note that it’s backtick (`) and not single quote (‘))
very useful and perfect command, i tried on RHEL 4 and it works well, save my lots of time
Thanks!!!!!!!!!
Nice! u save my life!
Wow!! That was very useful, thanx a lot!!!!!!!!!!!
That was really handy. Thanks!
This is how you avoid converting every file. You can use regular expressions to filter the files you wish to convert. My example is what i used to convert all of my PHP files to Unix.
find . -name \*.php -exec /usr/bin/dos2unix ‘{}’ \;
For more information you can visit this site: http://tinyurl.com/p3gzpc
I found this worked
$ find . -type f -exec dos2unix {} {} \;
Will convert the original file, keep the name
the
$ find . -type f -exec dos2unix {} \;
just displays the file in unix format in solaris
Didn’t really work very well for me. I used the following command instead:
$ dos2unix `find ./ -type f`
(note that it’s backtick (`) and not single quote (‘))
very useful and perfect command, i tried on RHEL 4 and it works well, save my lots of time
Thanks!!!!!!!!!
Nice! u save my life!
Wow!! That was very useful, thanx a lot!!!!!!!!!!!
That was really handy. Thanks!