From: Peter Freddolino (petefred_at_ks.uiuc.edu)
Date: Sat May 12 2007 - 16:10:10 CDT

(As an aside,
awk '$1 == "SMD" {print $0}' ubq_ww_pcv.log > analysis/smd.dat
should also work -- I think the tutorial is just attempting to very
clear about where the input is coming from)

Peter Freddolino wrote:
> Hi Robert,
> I don't have the tutorial in front of me currently, but I can suggest
> the variant
>
> cat ubq_ww_pcv.log | awk '$1 == "SMD" {print $0}' > analysis/smd.dat
>
> (please copy/paste to preserve spacing and such)
>
> In awk, $1 is automatically defined to be the first column of each line
> being processed.
>
> Best,
> Peter
>
> baxy wrote:
>> Hi,
>>
>> I have a problem with executing following command: cat ubq_ww_pcv.log | awk '{if ($1=="SMD") print $0}'> analysis/smd.dat
>>
>> it returns me the following message :
>> can't read "1": no such variable
>>
>> which seams logical to me, because i don't remember defiing that variable, so please instruct me what to do what did or didn't i do.
>>
>> robert
>>
> **
> ** Visit http://www.greatcircle.com/majordomo/ for more info on majordomo
> **
**
** Visit http://www.greatcircle.com/majordomo/ for more info on majordomo
**