[SLUG] grep sed

Al Girling al at gcguk.demon.co.uk
Tue Feb 28 16:06:33 GMT 2006


On Tue, Feb 28, 2006 at 03:20:06PM GMT, John Allsopp wrote:
> > Al said: John, I can see how you got this to work, but I'm uncertain
> > about what you were trying to do with the '| tee out.txt' bit.  I
> > can see how you'd use grep -l to find all the files containing your
> > string before passing that list to xargs and doing some sed magic to
> > change the old to new numbers.  Could you explain where 'tee' fits
> > in please?
> 
> I've always been irritated by the > out.txt to redirect the output to
> a file, whereupon you can't see what's being output. | tee out.txt is
> a T junction, a stream splitter: the output goes to the file, but it
> also goes to stdout too.

OK. Fair enough.  I guess it's just not my cup of tea!  Seems like just
creating superfluous files while watching lots of stuff disappear of the
top of your screen.

A little puzzled,

Al

-- 
Al Girling

Home page:                  <http://al.sdf-eu.org>
Linux User: #290080         <http://counter.li.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.lug.org.uk/pipermail/scarborough/attachments/20060228/8fd6a397/attachment.bin


More information about the Scarborough mailing list