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
Another option: find your_dir type f -exec sed -i 's/\r//' {} \;
Why aren't you using dos2unix command? If your'e doing just the sed above there might be files (depending on their source) that will have incorrect EOF (you can see it if you run cat and the prompt afterwards is concatenated to the file output)