Remove comments while counting

This commit is contained in:
flyingscorpio@pinebookpro 2022-01-02 19:43:51 +01:00
parent 1d7d103197
commit 5eab350078

View file

@ -7,4 +7,8 @@ fi
file="$1"
sed 's/\\item//g' "$file" | sed 's/\\lots/.../g' | sed '/^\s*\\/d' | wc -w
sed 's/\\item//g' "$file" |
sed 's/\\lots/.../g' |
sed '/^\s*\\/d' |
sed '/^\s*\%/d' |
wc -w