dotfiles/bin/stalk

9 lines
169 B
Bash
Executable File

#!/bin/bash
awk '$3~"^[+%@&~]?'$1'$"{print $2}' ~/.weechat/logs/* |
awk -F ":" '{print $1}' |
cat - ~/Documents/nums |
sort | uniq -c | sort -k2 |
awk '{print $1-1}'