bug-bash
[Top][All Lists]
Advanced

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

Re: Maximum limit of pipes in a single command ?


From: Paul Jarc
Subject: Re: Maximum limit of pipes in a single command ?
Date: Fri, 29 Aug 2008 01:04:03 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

"Keshetti Mahesh" <keshetti.mahesh@gmail.com> wrote:
> I modified the script a little bit to concatenate all
> "s/<orig_token>/<new_token>" using pipes and ran single 'sed' at the
> end. But its not working. Thats why I want to know how many pipes
> can I open through a single command.  Also, I have tried
> concatenated the replace commands using ";". Even that is not
> working.

sed's "s" command should be terminated with a final "/".  If nothing
comes after the "s" command, then you can leave out the final "/", but
in your case, you need it:
sed 's/old1/new1/;s/old2/new2/;...'


paul




reply via email to

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