]> git.netwichtig.de Git - user/henk/code/shell/rif.git/blob - rif-checkfriends.sh
Update all files to use RI6F instead of RIF
[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 RI6F | awk -F: '{ print $10 }' | sed 's/\\x3a/:/' | (
5     while read line
6     do
7         name=$(echo $line | sed 's/\(.*\)(.*/\1/')
8         # Assume by default offline
9         online=offline
10         url=$(echo $line | sed -e 's/.*(RI6F //' -e 's/).*//')
11         echo "Checking $name on $url ..."
12         curl -6 -s "$url" > /dev/null && online=online
13         echo $name is $online
14     done
15 )