#!/bin/sh # report text files with CRLF terminators (anywhere in the file) # License: LGPLv2 find '(' -type d -a '(' -name '.git' -o -name '.svn' -o -name 'CVS' ')' ')' -prune -o \ '(' -type f -print0 ')' | xargs -r0 file | env LANG=C grep -F "text, with CRLF" | cut -d: -f1 (CommandList children: [ (Pipeline children: [ (C {(find)} {(EscapedLiteralPart token:)} {(-type)} {(d)} {(-a)} {(EscapedLiteralPart token:)} {(-name)} {(SQ <.git>)} {(-o)} {(-name)} {(SQ <.svn>)} {(-o)} {(-name)} {(SQ )} {(EscapedLiteralPart token:)} {(EscapedLiteralPart token:)} {(-prune)} {(-o)} {(EscapedLiteralPart token:)} {(-type)} {(f)} {(-print0)} {(EscapedLiteralPart token:)} ) (C {(xargs)} {(-r0)} {(file)}) (SimpleCommand words: [{(grep)} {(-F)} {(DQ ("text, with CRLF"))}] more_env: [(env_pair name:LANG val:{(C)} spids:[76])] ) (C {(cut)} {(-d) (Lit_Other ":")} {(-f1)}) ] negated: False ) ] )