Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 11-05-2005, 02:20 PM   #1
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
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

[root@Dell-i8500 ~]# ifconfig|grep Bcast|awk '{print $2}'|cut -d : -f 2
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.


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 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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:33 PM.

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