4 lines
108 B
Text
4 lines
108 B
Text
|
#!/usr/bin/bash
|
||
|
ip addr | grep -Po '\d+\.\d+\.\d+\.\d+/24' | awk '{ print substr($1, 0, length($1) - 3) }'
|
||
|
|