mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2025-07-04 19:19:41 +03:00
Add new scripts
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
ip=$(curl "https://api.ipify.org" 2>/dev/null)
|
||||
|
||||
res=$(curl -s "http://ip-api.com/json/$ip" 2>/dev/null)
|
||||
res=$(curl -s "http://ip-api.com/json/" 2>/dev/null)
|
||||
# echo $res | jq '.'
|
||||
echo $res | jq -r -j '.city, ", ", .country, "\n"'
|
||||
|
Reference in New Issue
Block a user