diff --git a/simple_project/get_ip.sh b/simple_project/get_ip.sh new file mode 100644 index 0000000..1c4e0da --- /dev/null +++ b/simple_project/get_ip.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +name="Get IP" + +case $1 in + -h | --help) + echo "$nama" + echo "usage: get_ip [opsi]" + echo "-h | --help menampilkan command detail" + echo "-i | --ip menampilkan detail ip" + ;; + -i | --ip) + curl ipinfo.io/$2 + ;; + *) + curl ipinfo.io + ;; +esac \ No newline at end of file