Date: Fri, 15 Jan 2010 22:35:46 +0100 From: Michel Talon <talon@lpthe.jussieu.fr> To: hackers@freebsd.org Subject: Re:User error or awk bug? Message-ID: <20100115213546.GA39730@lpthe.jussieu.fr>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100115213546.GA39730>