Add whois-firefox, opens whois result in osm.org
This commit is contained in:
parent
7cc131b037
commit
92145b54c7
1 changed files with 8 additions and 0 deletions
|
@ -119,3 +119,11 @@ calc() {
|
||||||
echo -n "$* = "
|
echo -n "$* = "
|
||||||
python -c "print($*)"
|
python -c "print($*)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
whois-firefox() {
|
||||||
|
mkfifo pipe; cat pipe &
|
||||||
|
coords=$(whois "$1" | tee pipe | grep geoloc | sed -r 's/^geoloc:\s+//' | sort | uniq)
|
||||||
|
slash_coords=${coords// /\/}
|
||||||
|
firefox "https://osm.org/search?query=$coords#map=16/$slash_coords"
|
||||||
|
rm pipe
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue