Re: Search and Replace with Different Text
- From: Marcel Bruinsma <we-love-all-spam@xxxxxxxxx>
- Date: Mon, 08 Jun 2009 13:42:11 +0200
Deepan MYSQL wrote:
length=5
awk 'awk 'NR==FNR {repl[FNR]=$0;next} /<B>/{$0="<B>"repl[++count]"</
B>"}' ' myDataFile CDUSARBFIN2G99277.xml > new.xml
length=5
awk 'NR==FNR {repl[FNR]=$0;next}
/<B>/{$0="<B>"repl[++count]"</B>"}
' myDataFile CDUSARBFIN2G99277.xml > new.xml
Be careful with single quotes.
.
- Follow-Ups:
- Re: Search and Replace with Different Text
- From: Deepan MYSQL
- Re: Search and Replace with Different Text
- References:
- Search and Replace with Different Text
- From: Deepan MYSQL
- Re: Search and Replace with Different Text
- From: pk
- Re: Search and Replace with Different Text
- From: Deepan MYSQL
- Re: Search and Replace with Different Text
- From: pk
- Re: Search and Replace with Different Text
- From: Deepan MYSQL
- Search and Replace with Different Text
- Prev by Date: Re: Search and Replace with Different Text
- Next by Date: Re: Search and Replace with Different Text
- Previous by thread: Re: Search and Replace with Different Text
- Next by thread: Re: Search and Replace with Different Text
- Index(es):
Relevant Pages
|