diff options
Diffstat (limited to 'Conky/getInternalIp.sh')
-rwxr-xr-x | Conky/getInternalIp.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Conky/getInternalIp.sh b/Conky/getInternalIp.sh new file mode 100755 index 0000000..8894199 --- /dev/null +++ b/Conky/getInternalIp.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +ifconfig $1 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
\ No newline at end of file |