LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to access IP addresses when grepping (https://www.linuxquestions.org/questions/linux-general-1/how-to-access-ip-addresses-when-grepping-380259/)

ecampos02 11-05-2005 02:20 PM

how to access IP addresses when grepping
 
how would you create a strategy to determine whether you have always accessed via the same IP address, or more than one IP address. I know you would have to grep something but I'm unsure how.

TBC Cosmo 11-05-2005 02:39 PM

Something like this may work if you want to use ifconfig

Code:

[root@Dell-i8500 ~]# ifconfig|grep Bcast|awk '{print $2}'|cut -d : -f 2
192.168.0.4

You may then want to output that to a file and do some scripting to track the change??


All times are GMT -5. The time now is 05:00 AM.