Re: [SLUG] grep does not put the filename in front of every match

From: Eben King (eben1@tampabay.rr.com)
Date: Thu Mar 03 2005 - 11:06:40 EST


On Thu, 3 Mar 2005, Kwan Lowe wrote:

> Alex Harris wrote:
> > humm, which version of grep are you using, every instance I've tried
> > brings back the results I mentioned (only the first hit on a line has
> > the filename)?
> >
> > version's I've used:
> > rh 9: 2.5.1
> > debian sarge: 2.5.1
> > cygwin: 2.5
> > -- Also, did you include the "o" after the H?
>
> On FC3 I'm also running 2.5.1. I cut and pasted your command from below,
> including the -Ho and ran it in my /etc/sysconfig/network-scripts
> directory. All lines had the filenames listed.

I took his sample files and used his command line with "egrep (GNU grep)
2.5.1". The output was just as quoted.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
   Your pretended fear lest error might step in is like the man who
   would keep all wine out of the country lest men should be drunk.
                                                 -- Oliver Cromwell

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:15:55 EDT