From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14673 invoked by alias); 25 Feb 2012 18:31:36 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16785 Received: (qmail 19216 invoked from network); 25 Feb 2012 18:31:34 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.de designates 213.165.64.23 as permitted sender) X-Authenticated: #20088476 X-Provags-ID: V01U2FsdGVkX19aBjg+4zxasi0Nr2bcBx77KiP/oyvWwkghatwYub WOspX1C8lqDcTl Date: Sat, 25 Feb 2012 19:24:50 +0100 From: meino.cramer@gmx.de To: zsh-users@zsh.org Subject: s/pattern/pattern/g on the commandline ? Message-ID: <20120225182450.GA31597@solfire> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Linux) X-Y-GMX-Trusted: 0 Hi, suppose I have very long and ugly commandline like this one: cat file\ from\ \#windows \ part1 \a.txt file\ from\ \#windows \ part2 \a.txt file\ from\ \#windows \ part3 \a.txt file\ from\ \#windows \ part4 \a.txt > allAbout_a.txt and after summiting this ugly line I want redo the same but with a slightly differen input like this: cat file\ from\ \#windows \ part1 \b.txt file\ from\ \#windows \ part2 \b.txt file\ from\ \#windows \ part3 \b.txt file\ from\ \#windows \ part4 \b.txt > allAbout_b.txt which is - by the way - simply done with vim, with which I am editing this posting currently. My question is: Is there any way to submit commands like 's///g' for being applied the whole commandline in one go? Thank you very much in advance for any help! have a nice weekend! Best regards, mcc