tc-text-scan: proper whiler
parent
4d5337a6a1
commit
78ac5b0dcc
|
@ -1,10 +1,28 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
while read -r i; do
|
if [ $# -eq 0 ] || [ "$1" = "-h" ]; then
|
||||||
echo -n "# "
|
cat<<EOF
|
||||||
file "$i"
|
Usage: ${1##*/} FOLDERS
|
||||||
grep -m1 "\`" "$i"
|
|
||||||
grep -m1 "oe" "$i"
|
Check for files containing common mispelling, like "`" and "´" instead of "'",
|
||||||
done <<EOF
|
or "oe" instead of "œ".
|
||||||
$(find . -type f -size -50M -print)
|
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$(command -v recode)" ]; then
|
||||||
|
echo "recode needed."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i ; do
|
||||||
|
while IFS= read -r j; do
|
||||||
|
echo -n "# "
|
||||||
|
file "$j"
|
||||||
|
grep -m1 "\`" "$j"
|
||||||
|
grep -m1 "´" "$j"
|
||||||
|
grep -m1 "oe" "$j"
|
||||||
|
done <<EOF
|
||||||
|
$(find "$i" -type f -size -50M -print)
|
||||||
|
EOF
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue