Currently, I am using the following command to change dos2unix line endings, but this is for file-y file...
sed -i \'s/\\r//\' filename
Is ther
Simple:
sed -i 's/\r//' filename1 filename2 … filenameN
or, if you are speaking about content of one directory
sed -i 's/\r//' *
Work just well for me.
dos2unix *.txt
works fine to convert all *.txt files in a directory... no need for the 'find' command.