• 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: Martin Orpen <email@hidden>
  • Date: Fri, 15 Dec 2006 17:32:41 +0000

On 15 Dec 2006, at 15:51, John C. Welch wrote:

I was hoping that there'd be a simpler way to do
that via awk, and that I was just missing something, but it appears I wasn't
missing something, at least in awk's case.


Awk can still get close by simply using a double space as the file separator:

echo '17 "Security Update for Exchange 2000 Server (KB894549)" zeroDotZero application 2005-10-7,13:45:34.0' | awk 'BEGIN { FS=" "; OFS="\n" } { print $1, $3, $5, $8, $9 }'

-->
17
"Security Update for Exchange 2000 Server (KB894549)"
 zeroDotZero
 application
2005-10-7,13:45:34.0


-- 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
References: 
 >Re: awk question (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 3, Issue 634 (Holidays)
  • Next by Date: Re: rm does not always remove immediately
  • Previous by thread: Re: awk question
  • Next by thread: Re: awk question
  • Index(es):
    • Date
    • Thread