cli-scripts/scripts/ifcheck

11 lines
227 B
Plaintext
Raw Normal View History

2024-02-29 20:44:48 +00:00
#!/usr/bin/env bash
iface=$(ip -br -4 -iec -o -c address show dev wlp0s20f3)
if=$(echo $iface|awk '{print $1}')
ifstatus=$(echo $iface|awk '{print $2}')
ifaddr=$(echo $iface|awk '{print $3}')
echo $if $ifstatus $ifaddr
exit