]> git.netwichtig.de Git - user/henk/code/shell/rif.git/blob - rif-checkfriends.sh
Include friendchecker
[user/henk/code/shell/rif.git] / rif-checkfriends.sh
1 #!/bin/sh
2 # 2019-09-10, Nico Schottelius, Seoul
3
4 gpg --list-keys --with-colons | grep RIF | awk -F: '{ print $10 }' | sed 's/\\x3a/:/' | (
5     while read line
6     do name=$(echo $line | sed 's/\(.*\)(.*/\1/')
7        # Assume by default offline
8        online=offline
9        url=$(echo $line | sed -e 's/.*(RIF //' -e 's/).*//')
10        echo "Checking $name on $url ..."
11        curl -s "$url" > /dev/null && online=online
12        echo $name is $online
13     done
14 )