=== shell === #! /bin/sh out=$(mktemp) find . -type f | while read f ; do file $f | grep "with CRLF line terminators" && echo $f | tee -a $out done cat $out | while read t ; do flip -bu $t ; flip -bm $t ; flip -bu $t ; done cat $out rm $out