zsh-users
 help / color / mirror / code / Atom feed
* s/pattern/pattern/g on the commandline ?
@ 2012-02-25 18:24 meino.cramer
  2012-02-25 18:35 ` Jérémie Roquet
  2012-02-27 10:38 ` Peter Stephenson
  0 siblings, 2 replies; 18+ messages in thread
From: meino.cramer @ 2012-02-25 18:24 UTC (permalink / raw)
  To: zsh-users

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





^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2012-03-29 20:23 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-25 18:24 s/pattern/pattern/g on the commandline ? meino.cramer
2012-02-25 18:35 ` Jérémie Roquet
2012-02-25 18:41   ` Jérémie Roquet
2012-02-25 18:46     ` Moritz Bunkus
2012-02-25 19:03       ` Damien Thébault
2012-02-25 19:19         ` Jérémie Roquet
2012-02-25 19:36           ` Moritz Bunkus
2012-02-25 19:24       ` Phil Pennock
2012-02-25 20:30         ` Christoph (Stucki) von Stuckrad
2012-02-26 18:32       ` Bart Schaefer
2012-02-27  3:14         ` Darryl Zurn
     [not found]     ` <20120226075234.GB3020@solfire>
2012-02-26 15:17       ` Jérémie Roquet
     [not found]     ` <20120227041300.GA3063@solfire>
2012-02-28 13:09       ` Jérémie Roquet
2012-02-29 13:48         ` Christoph (Stucki) von Stuckrad
2012-02-29 15:55           ` Bart Schaefer
2012-02-27 10:38 ` Peter Stephenson
2012-03-29 12:06   ` Vincent Lefevre
2012-03-29 20:23     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).