LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 02: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, 02:39 PM   #2
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356

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 02:40 PM.
 
  


Reply



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 01:28 PM
grepping last word of output rajatgarg Programming 3 11-25-2003 10:41 AM
Internet Sharing can resolve external ip addresses but no access tragic_comic Linux - Newbie 2 10-13-2003 07:29 AM
Not grepping emails right mikeyt_333 Linux - General 11 04-13-2003 02:48 PM
How do I restrict ssh access to certain ip addresses? 360 Linux - Networking 5 04-05-2002 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:58 PM.

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
Open Source Consulting | Domain Registration