Created
August 2, 2021 17:14
-
-
Save aerickt/2b023c44377f830b4e0e619b1e653ef6 to your computer and use it in GitHub Desktop.
Plover Stroke Counter
This file contains hidden or 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 | |
cd ~/.config/plover | |
raw=($(cut -c-10 strokes.log)) | |
dates=($(echo "${raw[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' ')) | |
for i in "${dates[@]}"; do | |
count=$(cat strokes.log | grep -c "$i") | |
string="${i} ${count}" | |
echo "$string" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment