Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #5025
| From | Victor Porton <porton@narod.ru> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Suggest a command line syntax |
| Date | 2014-12-22 20:10 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <m79mpq$p0h$1@speranza.aioe.org> (permalink) |
I am writing a program (in fact a Perl script), which should do replacement of strings in a file, like this: AB->BC BC->AB YY->ZZ Note that Sed and relatives fail to do this task: It would replace BC back with AB after replacing AB with BC, and this is not what I need. What command line syntax to specify strings to be replaced and replacement strings for my command? I need an advice about the syntax of command line. -- Victor Porton - http://portonvictor.org
Back to comp.programming | Previous | Next — Next in thread | Find similar | Unroll thread
Suggest a command line syntax Victor Porton <porton@narod.ru> - 2014-12-22 20:10 +0200
Re: Suggest a command line syntax Richard Heathfield <invalid@see.sig.invalid> - 2014-12-22 18:42 +0000
Re: Suggest a command line syntax Victor Porton <porton@narod.ru> - 2014-12-22 20:48 +0200
Re: Suggest a command line syntax Richard Heathfield <invalid@see.sig.invalid> - 2014-12-22 19:44 +0000
Re: Suggest a command line syntax Kaz Kylheku <kaz@kylheku.com> - 2014-12-22 20:09 +0000
Re: Suggest a command line syntax Robert Wessel <robertwessel2@yahoo.com> - 2014-12-22 14:46 -0600
Re: Suggest a command line syntax Kaz Kylheku <kaz@kylheku.com> - 2014-12-22 21:40 +0000
csiph-web