delorie.com/archives/browse.cgi | search |
From: | eplmst AT lu DOT erisoft DOT se (Martin Stromberg) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: search and replace on multiple files |
Date: | 14 Mar 2000 11:03:00 GMT |
Organization: | Ericsson Erisoft AB, Sweden |
Lines: | 11 |
Message-ID: | <8al694$lsl$2@antares.lu.erisoft.se> |
References: | <38CC0B8F DOT EAEB9F25 AT hotmail DOT com> <38CC0C58 DOT 6B1CB1F4 AT hotmail DOT com> <38CDBD2D DOT 7DCB5A57 AT caresystems DOT com DOT au> <8al63v$lsl$1 AT antares DOT lu DOT erisoft DOT se> |
NNTP-Posting-Host: | mars.lu.erisoft.se |
X-Newsreader: | TIN [version 1.2 PL2] |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Martin Stromberg (eplmst AT lu DOT erisoft DOT se) wrote: : Perl: "perl -i -ne 's/old text/new text/; print' one_file.txt : another_file.txt" Make that "perl -i.bak -ne 's/old text/new text/; print' one_file.txt another_file.txt" and you have backups. Right, MartinS
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |