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

Michael Peters via TriLUG trilug at trilug.org
Tue Aug 18 14:17:17 EDT 2015


I know Perl has a reputation for being unreadable, but that awk code
is much worse IMO :)

On Tue, Aug 18, 2015 at 1:38 PM, Dewey Hylton via TriLUG
<trilug at trilug.org> wrote:
> 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!
> --
> This message was sent to: Michael Peters <michael00peters at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web  : http://www.trilug.org/mailman/options/trilug/michael00peters%40gmail.com
> Welcome to TriLUG: http://trilug.org/welcome


More information about the TriLUG mailing list