X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=rif-checkfriends.sh;fp=rif-checkfriends.sh;h=af029213cbf8caf9679b818a0069ce485db5ffc6;hb=21034ed2f029e39541cd006b6c3d746caa0a3d78;hp=24bb12f04461cc3869a13c14d1f63f10de99db29;hpb=679c6ffb8f8d87c6802a81ae2da272f4c9108baf;p=user%2Fhenk%2Fcode%2Fshell%2Frif.git diff --git a/rif-checkfriends.sh b/rif-checkfriends.sh index 24bb12f..af02921 100755 --- a/rif-checkfriends.sh +++ b/rif-checkfriends.sh @@ -1,13 +1,13 @@ #!/bin/sh # 2019-09-10, Nico Schottelius, Seoul -gpg --list-keys --with-colons | grep RIF | awk -F: '{ print $10 }' | sed 's/\\x3a/:/' | ( +gpg --list-keys --with-colons | grep RI6F | 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/).*//') + url=$(echo $line | sed -e 's/.*(RI6F //' -e 's/).*//') echo "Checking $name on $url ..." curl -6 -s "$url" > /dev/null && online=online echo $name is $online