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

Re: How to search and replace



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 10 11 8 10 to become
> Target[description1].1.3.4.6.5.3.:string 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 

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


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