Organize scripts

This commit is contained in:
2022-03-01 16:07:01 +03:00
parent 95d8d8e1c4
commit 5630243ef1
11 changed files with 78 additions and 31 deletions

7
scripts/whereami Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
ip=$(curl "https://api.ipify.org" 2>/dev/null)
res=$(curl -s "http://ip-api.com/json/$ip" 2>/dev/null)
# echo $res | jq '.'
echo $res | jq -r -j '.city, ", ", .country, "\n"'