Re: awk FS

2000-12-21 Thread David Brett
Hi Cameron It does! I don't know how I missed that combination. I tried almost every other combination. thanks david On Thu, 21 Dec 2000, Cameron Simpson wrote: On Wed, Dec 20, 2000 at 05:26:19PM -0500, David Brett [EMAIL PROTECTED] wrote: | Does anybody know how to set the field separator

RE: awk FS

2000-12-21 Thread Stephen_Reilly
cut -f2 -d'=' means you don't have to fire up awk to do it steve -Original Message- From: David Brett [mailto:[EMAIL PROTECTED]] Sent: 21 December 2000 16:36 To: Cameron Simpson Cc: [EMAIL PROTECTED] Subject: Re: awk FS Hi Cameron It does! I don't know how I missed that combination

awk FS

2000-12-20 Thread David Brett
Does anybody know how to set the field separator to "=" david ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list

Re: awk FS

2000-12-20 Thread Vidiot
Does anybody know how to set the field separator to "=" david Did you try the "-F =" on the command line, or: BEGIN { FS = "=" } MB -- e-mail: [EMAIL PROTECTED] Bart: Hey, why is it destroying other toys? Lisa: They must have programmed it to

Re: awk FS

2000-12-20 Thread David Brett
Yes the first does not give an error but treats the line as one field david On Wed, 20 Dec 2000, Vidiot wrote: Does anybody know how to set the field separator to "=" david Did you try the "-F =" on the command line, or: BEGIN { FS = "=" } MB --

Re: awk FS

2000-12-20 Thread Vidiot
Yes the first does not give an error but treats the line as one field david On Wed, 20 Dec 2000, Vidiot wrote: Does anybody know how to set the field separator to "=" david Did you try the "-F =" on the command line, or: BEGIN { FS = "=" } Strange. But, then

Re: awk FS

2000-12-20 Thread Cameron Simpson
On Wed, Dec 20, 2000 at 05:26:19PM -0500, David Brett [EMAIL PROTECTED] wrote: | Does anybody know how to set the field separator to "=" Do this: echo this=that | awk -F= '{print$2}' Works just fine; prints "that" as expected. -- Cameron Simpson, DoD#743[EMAIL PROTECTED]