Find Current IP Address
Saturday, December 22nd, 2007
Find the IP address of all the active interfaces.
ifconfig | egrep -o '^[a-z0-9]{1,12}|inet addr:[0-9.]+'
Find the IP address of all the active interfaces.
ifconfig | egrep -o '^[a-z0-9]{1,12}|inet addr:[0-9.]+'
If you use the diff command, you will be able to see the difference between the files as shown below:
diff file1 file2
diff -y file1 file2 -W 120 #View side by side