Re: Sorting log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 7 Jul 2000, oLGa wrote:

> Janez Vrenjak wrote:
> 
> > Hello,
> > I have the log file from squid.
> > The second file is IP_text (one IP address per line)
> >
> > now I'd like to select all lines from log_file that contains one of the
> > IP's in IP_text file
> > and put that all in third file.
> > Something like
> > cat access.log|grep `cat IP_text`
> > but that does't work :-(
> >
> > Any idea
> > THX
> > Janez
> >
> >
> 
> grep  `cat IP_text` access.log
> :.˛mkabzwmb˛mb{ayʇڙ,jfh`z
> 

I've tried it but, unfortunately, it doesn't work...
It returns only the matches with the first string/word from IP_text.

Am i doing something wrong ??

This is what i typed:
grep `cat IP_text` /var/log/messages


file IP_text:

#cat IP_text
192.168.2.2
192.168.2.3



Greetz Jos Lemmerling

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux