How do you search for files containing DOS line endings (CRLF) with grep on Linux?

后端 未结 9 1240
栀梦
栀梦 2020-11-30 17:24

I want to search for files containing DOS line endings with grep on Linux. Something like this:

grep -IUr --color \'\\         


        
9条回答
  •  鱼传尺愫
    2020-11-30 17:54

    Using RipGrep:

    rg -l \r
    
    -l, --files-with-matches
    Only print the paths with at least one match.
    

    https://github.com/BurntSushi/ripgrep

提交回复
热议问题