This shows you the differences between two versions of the page.
— |
cr [2022/04/16 12:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | === shell === | ||
+ | |||
+ | <code> | ||
+ | #! /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 | ||
+ | </code> | ||
+ | |||