Software
>>
OS
>>
Unix
>>
Linux
>>
commands
>>
grep
>>
How to use grep tr and cut to extract the IP address only from ifconfig command
# ifconfig virbr0 | grep inet | tr -s " " ":" | cut -f 3 -d ":"
Please enable JavaScript to view the
comments powered by Disqus.