code_junkie

How to find files with ^M from linux using csh

Nov 12th, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. fgrep -rl `echo -ne 'r'` .
  2.  
  3. find . -type f -exec grep $'r' {} +
  4.  
  5. find . -type f -print | xargs grep 'cntl-M$'
Add Comment
Please, Sign In to add comment