Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: s/pattern/pattern/g on the commandline ?
- X-seq: zsh-users 16786
- From: Jérémie Roquet <arkanosis@xxxxxxxxx>
- To: meino.cramer@xxxxxx
- Subject: Re: s/pattern/pattern/g on the commandline ?
- Date: Sat, 25 Feb 2012 19:35:11 +0100
- Authentication-results: mr.google.com; spf=pass (google.com: domain of arkanosis@xxxxxxxxx designates 10.180.74.177 as permitted sender) smtp.mail=arkanosis@xxxxxxxxx; dkim=pass header.i=arkanosis@xxxxxxxxx
- Cc: zsh-users@xxxxxxx
- 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=
- In-reply-to: <20120225182450.GA31597@solfire>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20120225182450.GA31597@solfire>
Hi,
2012/2/25 <meino.cramer@xxxxxx>:
> 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/<searched>/<replacement>/g' for being applied the whole commandline in one go?
!!:gs/<searched>/<replacement>/
Best regards,
--
Jérémie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author