Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash script get ip address of eth0

ip addr show eth0 | grep "inet" | awk '{print $2}' | cut -d/ -f1
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #bash #script #ip #address
ADD COMMENT
Topic
Name
2+5 =