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.  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 to "="
> 
> Do this:
> 
>       echo this=that | awk -F= '{print$2}'
> 
> Works just fine; prints "that" as expected.
> -- 
> Cameron Simpson, DoD#743        [EMAIL PROTECTED]
http://www.zip.com.au/~cs/
> 
> I do find these commercials entertaining, but then again, I own a Slinky.
>       - [EMAIL PROTECTED] (Andy Tefft)
> 



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to