Awk Question - Again

From: Arthur (amerar_at_iwc.net)
Date: 10/29/04


Date: 29 Oct 2004 06:22:51 -0700

Hi Again,

I forgot to add this this line worked fine on Solaris. But now I'm on
HPUX and it does not work.....

name=`echo $label1 | awk '{print substr($label1,1,index($label1,"
"))}'`

I am receiving this error:

awk: Field $() is not correct.
 The input line number is 1.
 The source line number is 1.

My input looks like this:
JOHN_DOE 255
JANE_DOE 160

I'm sure it has to do with the quotes or something........any help
please?

Thanks,

Arthur



Relevant Pages

  • VI on HP
    ... I started to work at this place which uses HPUX. ... I am used to Solaris. ... to be smart and format the code, ... Arthur ...
    (comp.sys.hp.hpux)
  • Best Approach for migrating NIS from HPUX to Solaris
    ... We are planing to migrate the NIS environment running at our site from HPUX ... to Solaris 8, presently we are having a master server and three slave ...
    (SunManagers)
  • Help needed for migrating HPUX tool to Solaris
    ... I am trying to migrate a MQ based tool from HPUX to Solaris. ... two shared libraries and an executable. ... included crt0.o file while building the exe. ...
    (comp.unix.solaris)
  • Re: Unix with most jobs
    ... Every time I look for a unix job, I end up with yet more hpux. ... been unable to find a Solaris admin position, because even though I know it, I ... Searching on a popular IT jobs site, ...
    (comp.unix.admin)
  • Re: tcpInUnorderBytes
    ... I am trying some IP over FC point to point on solaris 9 and I am seeing ... lots of out of order bytes at the receiving end. ... gump33lt wrote: ... > Running proxy firewall. ...
    (comp.unix.solaris)