Fix awk usage
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 May 2011 17:16:04 +0000 (10:16 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 6 May 2011 17:16:04 +0000 (10:16 -0700)
commit6ee44e32be259706aed9b1439b71971a165b198c
treeb76da1c5dad00da12dcb5ce92dc285ba51611415
parent34b84cb831695b276788493048ea34f8af8d5bdf
Fix awk usage

The zpool_id and zpool_layout helper scripts have been updated to
use the more common /usr/bin/awk symlink.  On Fedora/Redhat systems
there are both /bin/awk and /usr/bin/awk symlinks to your installed
version of awk.  On Debian/Ubuntu systems only the /usr/bin/awk
symlink exists.

Additionally, add the '\<' token to the beginning of the regex
pattern to prevent partial matches.  This pattern only appears to
work with gawk despite the mawk man page claiming to support this
extended regex.  Thus you will need to have gawk installed to use
these optional helper scripts.  A comment has been added to the
script to reflect this reality.
cmd/zpool_id/zpool_id
cmd/zpool_layout/zpool_layout