2010/7/10 Petru Ratiu <[email protected]>:
> (de ce nu vrea awk sa inteleaga {2} nu stiu si mi-e lene acum sa caut.
Am gasit:
Interval expressions are only available if either --posix or
--re-interval is specified on the command line.
Asta inseamna ca dracia de mai sus se poate rescrie ca:
gawk --posix '{gsub( "(-[^-]*){2}$" , ""); print}'
(mawk nu stie de interval).
--
Petre.
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug