Date: Tue, 29 Apr 1997 01:40:01 -0700 (PDT) From: Bill Fenner <fenner@parc.xerox.com> To: freebsd-bugs Subject: Re: bin/3387: sh mis-interpret the file name / awk failure Message-ID: <199704290840.BAA05182@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/3387; it has been noted by GNATS. From: Bill Fenner <fenner@parc.xerox.com> To: John-Mark Gurney <gurney_j@resnet.uoregon.edu> Cc: "Jin Guojun[ITG]" <jin@george.lbl.gov>, fenner@parc.xerox.com, FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/3387: sh mis-interpret the file name / awk failure Date: Tue, 29 Apr 1997 01:29:48 PDT John-Mark Gurney <jmg@hydrogen.nike.efn.org> wrote: >what I wouldn't object to is another flag that strips that white space >from around the fields... Like "-F'[ /]'" as Joerg suggested? sundae% uname -v | awk -F'[ /]' '{printf ">>" $(NF-1) "<<"}' >>SUNDAE<<sundae% Of course, this is non-portable due to the $(NF-1) requirement. Bill
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704290840.BAA05182>