Re: awk question





On 11/26/2007 3:45 PM, Kenny McCormack wrote:
In article <pan.2007.11.26.21.18.02.765000@xxxxxxx>,
Ted Davis <tdavis@xxxxxxx> wrote:

On Mon, 26 Nov 2007 07:23:42 -0800, rvaede wrote:



I want to assign a variable using awk:

set myvariable = `awk '{print $1}' cool`

how can extract the contents of cool and assign it to myvariable.

This doesn't work.

I have done this before and I cannot remember how to do this

You seem to be using Windows (XP?). This is a specific instance of the


I'm not saying you are wrong (please see my previous post in this thread
for confirmation of this), but what makes you think he is using Windoze?

If I may answer for Ted: the OP posted a half-baked question with no clear
requirements, no sample input, no expected output, and no description of what he
perceived to be the problem. He then went on to ignore the advice of several
people with a long history of posting to this NG in favor of a posting from one
person who, AFAIK has never posted anything here before. He then went on to
insult the regular posters who were doing their best to help him. So, of COURSE
he's using Windoze!

Ed.

.