Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Henk vd Langenberg <rchenk@urc.tue.nl>
Subject: Re: Problems with nawk/gawk in new(?) Digital UNIX
Date: 1996/12/03	[thread overview]
Message-ID: <32A4123E.41C6@urc.tue.nl> (raw)
In-Reply-To: E1Ivqu.Crt@news.cern.ch


Sean Lane wrote:
> 
>    Yesterday I received a new AlphaStation 500/333 running (I assume) the latest
> Digital UNIX (uname -a output gives OSF1 node V4.0 464 alpha) and comes with
> the Common Desktop Environment.
> 
>    Since installing this machine, I noticed that one of my cron jobs
> failed last night (a nawk script). Further investigation revealed that
> changing the field seperator to '=' (with {FS="="} ), does not work. It
> ignores the new field seperator specification and just uses the default
> tab and space seperators.
> 
> e.g.
> 
>   echo "physical memory = 128.00 megabytes." | nawk '{FS="="} {print $2}'
> 

It works fine if you say (which is in fact better):

echo "physical memory = 128.00 megabytes." | nawk 'BEGIN{FS="="}{print
$2}'

Henk.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= Henk van de Langenberg, Eindhoven University of Technology  =
= CC 1.91, P.O. Box 513, 5600 MB Eindhoven,  The Netherlands  =
= E-mail: rchenk@urc.tue.nl, TEL/FAX: +31 40 2474533/2434438  =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= Reporter (to Indira Gandhi):                                =
=      Mr Gandhi, what do you think of Western Civilization?  =
= Gandhi: I think it would be a good idea.                    =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



      reply	other threads:[~1996-12-03  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-27  5:00 Problems with nawk/gawk in new(?) Digital UNIX Sean Lane
1996-12-03  5:00 ` Henk vd Langenberg [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox