From e5c65136c4ebd22c4dc38c3c6ac08d7b048fdc26 Mon Sep 17 00:00:00 2001 From: glitchd Date: Sat, 14 Sep 2019 06:57:37 -0500 Subject: [PATCH] New Script: functions.sh --- functions.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 functions.sh diff --git a/functions.sh b/functions.sh new file mode 100755 index 0000000..59c9c8d --- /dev/null +++ b/functions.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +fuck(){ + echo "fuck you" + echo "" +} + +ipp(){ + echo Public IP + curl -s icanhazip.com + echo + echo Local IP + /sbin/ifconfig enp3s0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}' +} +fuck +ipp \ No newline at end of file