[TriLUG] awk question - or something better if you have it

Dewey Hylton via TriLUG trilug at trilug.org
Tue Aug 18 13:38:01 EDT 2015


On Aug 18, 2015, at 1:30 PM, Kevin Otte nivex at nivex.net wrote:

> This what you mean?
> 
> kjotte at mystic:~$ nginx -V 2>&1 | awk 'BEGIN {RS=" ";FS="=";} $1 ~
> /conf-path/{print $2}'
> /etc/nginx/nginx.conf

YES! that is exactly what i was after; i think i need to dust off the
old oreilly book ... this is much simpler than what i had envisioned
being necessary for an awk solution ...

thanks!


More information about the TriLUG mailing list