new script for getting network assigned ip address

This commit is contained in:
2025-11-18 21:44:33 -05:00
parent 32ab993279
commit 5cdf94bfd3
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
ip addr show | grep 'global' | grep -oE 'inet [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -n 1