How to search and replace
Alexander Dalloz
ad+lists at uni-x.org
Thu Feb 2 15:27:38 UTC 2006
Am Do, den 02.02.2006 schrieb Dan Track um 16:20:
> What I would like to do is replace the ip of each with the following
> value of "Directory". So for example I would like
> Target[description1].1.3.4.6.5.3.:string at 10.11.8.10 to become
> Target[description1].1.3.4.6.5.3.:string at server1.example.com
> Dan
sed -e 's/10.11.8.10/server1.example.com/g' < original_file >
changed_file
Alexander
--
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp
Serendipity 16:25:43 up 59 days, 21:02, load average: 1.16, 0.86, 0.69
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060202/a25304f4/attachment-0001.sig>
More information about the fedora-list
mailing list