Awk Question - Again
From: Arthur (amerar_at_iwc.net)
Date: 10/29/04
- Next message: dfrench_at_mtxia.com: "Re: Check for special character"
- Previous message: Arthur: "Awk Question"
- Next in thread: Ed Morton: "Re: Awk Question - Again"
- Reply: Ed Morton: "Re: Awk Question - Again"
- Reply: Christoph Gysin: "Re: Awk Question - Again"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: dfrench_at_mtxia.com: "Re: Check for special character"
- Previous message: Arthur: "Awk Question"
- Next in thread: Ed Morton: "Re: Awk Question - Again"
- Reply: Ed Morton: "Re: Awk Question - Again"
- Reply: Christoph Gysin: "Re: Awk Question - Again"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|