awk doesn't use perl or python type regular expressions but much
simpler ones, called "extended". Your constructs are managed by Gnu awk
with the --posix option only. The following achieves what you want in 
a simpler way


niobe% echo "/"|awk 'gsub(/\/+/,"/")'
/
niobe% echo "//"|awk 'gsub(/\/+/,"/")'
/

-- 

Michel TALON

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to