Is there a csh script/command to list all the files in source source tree which have line endings that show up as "^M" in emacs (under linux).
Thanks!
Is there a csh script/command to list all the files in source source tree which have line endings that show up as "^M" in emacs (under linux).
Thanks!
find . -type f -exec grep $'\r' {} +
The $'\r'
probably requires bash to function correctly.
find . -type f -print | xargs grep 'cntl-M$'
where cntl-M has been entered by first entering cntl-V
Based on my answer to another question:
fgrep -rl `echo -ne '\r'` .