Created
May 23, 2022 08:15
-
-
Save manfromth3m0oN/51fa8b15a856cd868a2aec0c871fe0f6 to your computer and use it in GitHub Desktop.
Markdown Wordcount Bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed '/^```/,/^```/d' | sed 's/#\+ //g;s/\\\w\+\({\w\+}\)\?//g;s/\[\w\]//g;s/{[[:digit:]]\.[[:digit:]]\(cm\)\?}//g;s/!\[\w\+\](\w\+)//g;s/!\[[A-Z a-z]\+\].\+//g;/^[[:space:]]*$/d;/`*\+`/d' | tr -d "{}|-()[]!:>" | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment