14 lines
153 B
Bash
Executable File
14 lines
153 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Prints out your public IP address
|
|
# Depends on curl
|
|
|
|
PREFIX=' '
|
|
|
|
get_pub_ip()
|
|
{
|
|
echo "$PREFIX$(curl -s ifconfig.co)"
|
|
}
|
|
|
|
get_pub_ip
|