• 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: "John C. Welch" <email@hidden>
  • Date: Fri, 15 Dec 2006 09:51:37 -0600
  • Thread-topic: awk question

On 12/15/06 09:19, "Mark J. Reed" <email@hidden> wrote:

> You still don't seem to understand the scope of the problem.  And
> since I know how smart you are, I'm confused by that. :)  Am I missing
> something?
>
> The goal is to write something that, given this line as input:
>
> 17    "Security Update for Exchange 2000 Server (KB894549)"
> zeroDotZero       application  2005-10-7,13:45:34.0
>
> will produce as output a list of five fields,where the first field is
> "17", the second is "Security Update for Exchange 2000 Server
> (KB894549)", the third is "zeroDotZero", the fourth is "application",
> and the fifth is "2005-10-7,13:45;34.0".

well, actually, I don't want the zeroDotZero column, as it's generic SNMP
data, and not needed for anything.

The problem with using TIDs is that it forces you to parse every line for
the zeroDotZero text, and if I'm doing that, I don't really need TIDs, I can
just rebuild the string. 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.

--
"This machine is a piece of GAGH!  I need dual G5 processors if I am to do
battle with this code!"

- 11th most commonly uttered Klingon programmer phrase


 _______________________________________________
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: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: awk question
  • Next by Date: Re: awk question
  • Previous by thread: Re: awk question
  • Next by thread: Re: awk question
  • Index(es):
    • Date
    • Thread