From 5eab350078335f11a5c3531d882c2b5ecfacf70d Mon Sep 17 00:00:00 2001 From: "flyingscorpio@pinebookpro" Date: Sun, 2 Jan 2022 19:43:51 +0100 Subject: [PATCH] Remove comments while counting --- art-argumenter/plaidoyer/word-count | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/art-argumenter/plaidoyer/word-count b/art-argumenter/plaidoyer/word-count index e6ff0df..b23070a 100755 --- a/art-argumenter/plaidoyer/word-count +++ b/art-argumenter/plaidoyer/word-count @@ -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