In a shell script (interpreter /bin/bash), the following works on Debian Squeeze:
find ~/bin/ '!' -type d -exec dos2unix {} \;
Now, I know that for some reason that dos2unix was renamed to fromdos in Ubuntu, so I'm trying to run:
find ~/bin/ '!' -type d -exec fromdos {} \;
Whilst this works on Debian, on Ubuntu it yields the output:
fromdos: Unable to access file todos.
fromdos: Unable to access file fromdos.
How do I get around this, and what is the problem?
~/bin/mentioned exactly the same in both cases? Not just the same file list and contents, but the same underlying device/filesystem? – phogg Jan 25 '11 at 15:11find ~/bin/ '!' -type dby itself seems to do the same in both cases. – Matthieu Cartier Jan 25 '11 at 15:23