Search Results

Search: Posts Made By: Ashu_099
4,249
Posted By elixir_sinari
cat pattfile 98 12 nawk...
cat pattfile
98
12

nawk 'FNR==NR{a[$1];next}
match($0,/^<Text Id="[^"]*">/){if(substr($0,11,RLENGTH-12) in a) s=1;print;next}
/^<\/Text>/{s=0;print;next}
s{gsub(/Su saldo/,"Your balance")}1'...
2,096
Posted By birei
Try following solution. Now the script accepts...
Try following solution. Now the script accepts two arguments. The first one is a file with a number per line, and the second one is the xml file:

$ cat infile
98
12
$ cat script.pl...
2,096
Posted By birei
A solution to your problem using perl and the...
A solution to your problem using perl and the module XML::Twig:

$ cat infile
<root>
<Text Id="98">
<Language id="1">Su saldo es $mainAccountBalance1Tiene ademas...
2,096
Posted By birei
Hi Ashu_099, 1.- Replace? with what? 2.-...
Hi Ashu_099,

1.- Replace? with what?
2.- That xml file is not well formed.
3.- Show sample output to get more helpful answers.
2,096
Posted By zaxxon
Do not hijack threads of other people - open up...
Do not hijack threads of other people - open up your own.
Do use code tags when posting code, data or logs etc.
Do use meaningful subjects, not just "help me...".

Thanks.
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 08:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy