[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-user
Subject: Re: [gentoo-user] Re: OT: global search and replace
From: Billy Holmes <billy () gonoph ! net>
Date: 2004-09-09 15:27:00
Message-ID: 41407644.8010300 () gonoph ! net
[Download RAW message or body]
Alexander W. Skwar wrote:
>>> sed -i 's/oldhostname/newhostname/g' "${FILE}"
>>perl makes this easier..
> In how far?
it takes care of the backup files for you, perl's -i does't create
backups unless you specify an extension like -i.bak
therefore, no need for a block of shell code to remove the tmp files.
thus easier in this case means less work.
--
gentoo-user@gentoo.org mailing list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic