5 lines
178 B
Bash
Executable File
5 lines
178 B
Bash
Executable File
#!/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
|
|
|