diff options
Diffstat (limited to 'scripts/word_count.sh')
| -rwxr-xr-x | scripts/word_count.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/word_count.sh b/scripts/word_count.sh new file mode 100755 index 0000000..78e11c8 --- /dev/null +++ b/scripts/word_count.sh @@ -0,0 +1,12 @@ +#!/bin/bash + + + +if ["$1" = "-s"]; then + wc -m *.md | sort -rn +fi + +if ["$1" = ""]; then + ls -l | awk '{print $9}' | xargs cat | LANG=C.UTF-8 wc -m +fi + |
