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

From: Kwan Lowe (kwan@digitalhermit.com)
Date: Thu Mar 03 2005 - 07:43:04 EST


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.

Maybe your text files have some weird characters?
-----------------------------------------------------------------------
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:28 EDT