Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
s/pattern/pattern/g on the commandline ?
- X-seq: zsh-users 16785
- From: meino.cramer@xxxxxx
- To: zsh-users@xxxxxxx
- Subject: s/pattern/pattern/g on the commandline ?
- Date: Sat, 25 Feb 2012 19:24:50 +0100
- 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
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/<searched>/<replacement>/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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author