bug-bash
[Top][All Lists]
Advanced

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

Re: |& in bash?


From: Linda Walsh
Subject: Re: |& in bash?
Date: Sat, 26 Jan 2013 13:28:28 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666



Bob Proulx wrote:
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' {} +
---

You mean I can't:
    "sed -Rn '...'" ?

Drat.

OB.bash:

bash -c 'while (($#)); do [[ -f $1 ]] && sed -n "/PATTERN/s/THIS/THAT/gp" "$1"; shift;done' bash **




reply via email to

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