From: salane@axnd03.cern.ch (Sean Lane)
Subject: Problems with nawk/gawk in new(?) Digital UNIX
Date: 1996/11/27 [thread overview]
Message-ID: <E1Ivqu.Crt@news.cern.ch> (raw)
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}'
will give the output :-
memory
instead of :-
128.00 megabytes.
which is the expected output (and which is produced on earlier versions of
Digital UNIX). This also fails if you use gawk instead of nawk. However,
it works if you use awk! I know that in REAL UNIX nawk is supposed to
replace awk (and in some cases it is linked so that they are one and
the same), so why is it that Digital has two seperate programs still?
I have worked around the problem by copying the older (working) versions
of nawk and gawk to the new machine since we have many scripts running using
nawk.
Just thought someone might want to know.
Sean A Lane.
___________CERN - European Laboratory for Particle Physics__________
ENT - NOMAD Experiment
____________________________________________________________________
Email : sean.lane@cern.ch
Snail mail : CERN,
Case Postale 6,
CH-1211-Geneve,23,
Switzerland,
Phone : + (41 22) 767 8987 (x78987)
____________________________________________________________________
next reply other threads:[~1996-11-27 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-27 5:00 Sean Lane [this message]
1996-12-03 5:00 ` Problems with nawk/gawk in new(?) Digital UNIX Henk vd Langenberg
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