• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: awk question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: awk question


  • Subject: Re: awk question
  • From: email@hidden
  • Date: Thu, 14 Dec 2006 20:19:38 -0500

No, because then that whole line is only 3 fields.  The goal is to
separate fields by whitespace generally, but allow quoted strings,
which may contain spaces.

On 12/14/06, Martin Orpen <email@hidden> wrote:
On 14 Dec 2006, at 15:36, John C. Welch wrote:

> Mark, relax. Didn't say perl was useless, or that people who like
> perl are
> bad people. I said I don't like, because I don't like the syntax or
> the
> structre, and my experience has been that perl code and
> documentation don't
> live well together.


Hey John, were you looking for something like this?


echo '17 "Security Update for Exchange 2000 Server (KB894549)" zeroDotZero application 2005-10-7,13:45:34.0' | awk 'BEGIN { FS="\""} { print $2 }'

--> Security Update for Exchange 2000 Server (KB894549)


Regards

--
Martin Orpen
Idea Digital Imaging Ltd


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden



--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: awk question
      • From: Martin Orpen <email@hidden>
References: 
 >Re: awk question (From: "John C. Welch" <email@hidden>)
 >Re: awk question (From: Martin Orpen <email@hidden>)

  • Prev by Date: How can this scale?
  • Next by Date: Re: Moving files to another user
  • Previous by thread: Re: awk question
  • Next by thread: Re: awk question
  • Index(es):
    • Date
    • Thread