bug-bash
[Top][All Lists]
Advanced

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

Re: |& in bash?


From: Bob Proulx
Subject: Re: |& in bash?
Date: Tue, 22 Jan 2013 14:36:38 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

Greg Wooledge wrote:
> It kinda reminds me of the Linux newcomers who don't know how to do
> gzip -dc foo.tar.gz | tar xvf - (and so on) because they've been trained
> to use GNU tar's "z" flag instead, and therefore that piece of their
> education hasn't been absorbed yet.

Just like:

  grep -r PATTERN

Has replaced:

  find . -type f -exec grep PATTERN {} +

And therefore they don't know how to write other directory traversal
tasks either.

  find . -type f -exec sed -n '/PATTERN/s/THIS/THAT/gp' {} +

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]