Re: How to search and replace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx to become
> Target[description1].1.3.4.6.5.3.:string@xxxxxxxxxxxxxxxxxxx

> 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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux