Add script to count words

This commit is contained in:
flyingscorpio@pinebookpro 2022-01-01 14:39:01 +01:00
parent 72cc83e676
commit 6373fedb1c

View file

@ -0,0 +1,10 @@
#!/bin/sh
if [ $# != 1 ]; then
echo "Usage: $0 FILE"
exit 1
fi
file="$1"
sed 's/\\item//g' "$file" | sed 's/\\lots/.../g' | sed '/^\s*\\/d' | wc -w