grouping in awk
am 14.04.2008 21:14:59 von Otavio ExelDear Group,
it is a shame that I can't find the answer to such a simple question!
I read in the awk man pages that awk supports grouping;
but how do I use the parts of the mach?
let's say I'd like to replace "" with "";
in sed I'd do:
s/<\(.*\),\(.*\)>/<\2,\1>/
in awk I expected to do
sub( "<(.*),(.*)>", "<\2,\1>" )
....but (guess?) it didn't work!
any clues?
[]s and TIA!
--
Otavio Exel /<\oo/>\ oexel@economatica.com.br