plugfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

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"