Last active
April 4, 2016 13:55
-
-
Save PMaynard/9669a6d97d82907cef2d1bb84ce6804f to your computer and use it in GitHub Desktop.
Trackers word, line, byte size, and char count. cron this to run, chart the output.
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
#!/bin/bash | |
FILE="file.md" | |
COUNT=$(wc -w -l -c -m "$FILE" | tr -s ' ' | sed 's/^//' | sed 's/ /,/g' | cut -b 2- ) | |
DATETIME=$(date +%Y-%m-%d-%H-%M) | |
echo $COUNT,$DATETIME >> "tracker.csv" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment