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
use
for i in `ls directory_path`; do sed -i 's/\r//' $i ; done
for entire directory.