• 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: Extracting text from an Retrospect Log
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extracting text from an Retrospect Log


  • Subject: Re: Extracting text from an Retrospect Log
  • From: Gnarlodious <email@hidden>
  • Date: Mon, 13 Mar 2006 17:18:45 -0700
  • Thread-topic: Extracting text from an Retrospect Log

Title: Re: Extracting text from an Retrospect Log
Entity John C. Welch spoke thus:

> Not to get too picky, but applications like rsync, and applications like
> Retrospect serve ENTIRELY different needs.

OK, I have been chastized, thanks to Gary and John for explaining that.

The OP might consider a command like this:

do shell script "tr '\\r' '\\n' < '/tmp/Operations Log' | sed -n '/Retrospect/,${H;/Retrospect/h;${g;p;};}' "

This has 3 advantages. It pipes the translated into sed so it is only one line, it will not error in case there is no occurrence of the regex in the file, and it only launches one process.
 
-- Gnarlie's Applescript page:
http://Gnarlodious.com/Apple/AppleScript/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Extracting text from an Retrospect Log
      • From: Michael Slomski <email@hidden>
References: 
 >Re: Extracting text from an Retrospect Log (From: "John C. Welch" <email@hidden>)

  • Prev by Date: Re: Extracting text from an Retrospect Log
  • Next by Date: Re: Data vs. Resource
  • Previous by thread: Re: Extracting text from an Retrospect Log
  • Next by thread: Re: Extracting text from an Retrospect Log
  • Index(es):
    • Date
    • Thread