From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23793 invoked by alias); 25 Feb 2012 18:35:33 -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: 16786 Received: (qmail 26927 invoked from network); 25 Feb 2012 18:35:31 -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.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 74.125.82.43 as permitted sender) Received-SPF: pass (google.com: domain of arkanosis@gmail.com designates 10.180.74.177 as permitted sender) client-ip=10.180.74.177; Authentication-Results: mr.google.com; spf=pass (google.com: domain of arkanosis@gmail.com designates 10.180.74.177 as permitted sender) smtp.mail=arkanosis@gmail.com; dkim=pass header.i=arkanosis@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=4e5wEiVUnNDPkq3Cpfb/ft3G2VSo9qWn15T1uulOfH4=; b=wZxh6XUrUh5vKttE4vuPU4U3eYO/efuT6DTbVeP48mwb9wou+SP7kh+iSzHHCyJ0CE tnm5Em3bN3wQxg2zJh7XncN1EhU+VDeRbzy5fHPesX60k7vB0btxc5JW5PyeMkQDG6TM SjyAiWrriGlYKEJdRzRYP2jI20wKCmM/x3Lu8= MIME-Version: 1.0 In-Reply-To: <20120225182450.GA31597@solfire> References: <20120225182450.GA31597@solfire> From: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Date: Sat, 25 Feb 2012 19:35:11 +0100 Message-ID: Subject: Re: s/pattern/pattern/g on the commandline ? To: meino.cramer@gmx.de Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, 2012/2/25 : > suppose I have very long and ugly commandline like this one: > > =C2=A0 =C2=A0cat file\ from\ \#windows \ part1 \a.txt file\ from\ \#windo= ws \ part2 \a.txt file\ from\ \#windows \ part3 \a.txt file\ from\ \#window= s \ 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: > > > =C2=A0 =C2=A0cat file\ from\ \#windows \ part1 \b.txt file\ from\ \#windo= ws \ part2 \b.txt file\ from\ \#windows \ part3 \b.txt file\ from\ \#window= s \ 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' f= or being applied the whole commandline in one go? !!:gs/// Best regards, --=20 J=C3=A9r=C3=A9mie