Add script to count words
This commit is contained in:
parent
72cc83e676
commit
6373fedb1c
1 changed files with 10 additions and 0 deletions
10
art-argumenter/plaidoyer/word-count
Executable file
10
art-argumenter/plaidoyer/word-count
Executable 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
|
Loading…
Reference in a new issue