I have downloaded source code for some software from svn on Linux and want to build it:
$ ./configure
bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory
Character ^M is a \r carriage return character. When I change line ending of files to Linux format then it starts to work, however there are many of these files and it is manually hard to do. How to change line endings in all files in directory and its subdirectories to Linux format?
Make dos2unix convert each file in the directory.