diff options
author | Nico Schottelius <nico@nico-notebook.schottelius.org> | 2019-09-10 01:53:43 +0900 |
---|---|---|
committer | Nico Schottelius <nico@nico-notebook.schottelius.org> | 2019-09-10 01:53:43 +0900 |
commit | 3b8e2bff869096edf9ab0dead1c61eeae26a3d4f (patch) | |
tree | 188bfc680c9d4ec2ca61c152b0d609b84e3478b0 /rif-checkfriends.sh | |
parent | 9cda2ce9b8d35ba02a56e7f61c9e2f009ed85b73 (diff) |
Include friendchecker
Diffstat (limited to 'rif-checkfriends.sh')
-rw-r--r-- | rif-checkfriends.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rif-checkfriends.sh b/rif-checkfriends.sh new file mode 100644 index 0000000..af7e4d6 --- /dev/null +++ b/rif-checkfriends.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# 2019-09-10, Nico Schottelius, Seoul + +gpg --list-keys --with-colons | grep RIF | awk -F: '{ print $10 }' | sed 's/\\x3a/:/' | ( + while read line + do name=$(echo $line | sed 's/\(.*\)(.*/\1/') + # Assume by default offline + online=offline + url=$(echo $line | sed -e 's/.*(RIF //' -e 's/).*//') + echo "Checking $name on $url ..." + curl -s "$url" > /dev/null && online=online + echo $name is $online + done +) |