[download]

local/bin/torinfo

   1 #!/bin/bash
   2 
   3 f=~/.cache/${0##*/}
   4 pid=$(pidof tor) || exit
   5 
   6 [[ /proc/$pid -nt $f ]] &&
   7 torsocks curl -sfo $f https://ipinfo.io
   8 
   9 jq -r 'to_entries[] | [.key, .value] | @tsv' $f |
  10 sed 's/./\u\0/' | grep -v ^Readme