From 97d1a6c55dfc6c07cb297679fc8aca5157d3dd23 Mon Sep 17 00:00:00 2001 From: Jacob <139719541+j-isreal@users.noreply.github.com> Date: Mon, 9 Sep 2024 23:51:30 -0500 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 8f45fac..f9a161a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,20 @@ # bash-get-ip-hostname Gets external IP address or hostname + +## Add execute permission and run +On Linux, add execute permission: + +``` +chmod +x get-ip.sh +``` + +Then, run script: +``` +./get-ip.sh +``` + +## Change logfile path and rotate logs +Remember to update the log file path (or comment out), and rotate the log as data is appended to the file. + +### View on website +Visit my website at [www.jinet.us] for more info.