1
0
mirror of https://github.com/sahinakkaya/dotfiles.git synced 2025-04-07 12:02:06 +02:00
dotfiles/scripts/whereami

6 lines
138 B
Bash
Executable File

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