LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 11-05-2005, 03:20 PM   #1
ecampos02
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 0
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.
 
Old 11-05-2005, 03:39 PM   #2
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 355

Rep: Reputation: 43
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??

Last edited by TBC Cosmo; 11-05-2005 at 03:40 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about grepping something Grafbak Programming 6 03-01-2005 02:28 PM
grepping last word of output rajatgarg Programming 3 11-25-2003 11:41 AM
Internet Sharing can resolve external ip addresses but no access tragic_comic Linux - Newbie 2 10-13-2003 08:29 AM
Not grepping emails right mikeyt_333 Linux - General 11 04-13-2003 03:48 PM
How do I restrict ssh access to certain ip addresses? 360 Linux - Networking 5 04-05-2002 09:04 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration