For Programmers: Free Programming Magazines  


Home > Archive > AWK > January 2008 > Re: question on awk (FU2 set, comp.lang.awk posted)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: question on awk (FU2 set, comp.lang.awk posted)
Janis Papanagnou

2008-01-05, 3:58 am

loki harfagr wrote:
>
> $ woooop=$(awk '$NF=="RUNNING"{print $1}' FS=- yourfile)
>
> or backticks instead of bashism:


Where's the "bashism"?

> $ woooop=`awk '$NF=="RUNNING"{print $1}' FS=- yourfile`


$(...) was already present in ksh88 and is in the shell standard.

Janis
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com