nordstat (249B)
1 #!/bin/bash 2 # Nicholas Farrow 2020 3 STATUS=$(nordvpn status) 4 CONNSTAT=$(grep "Status:" <<< "$STATUS" | cut -d ' ' -f2) 5 COUNTRY=$(grep "City:" <<< "$STATUS" | cut -d ' ' -f2) 6 IP=$(grep "IP" <<< "$STATUS" | cut -d ':' -f2) 7 echo "$CONNSTAT $COUNTRY$IP"