Re: Extracting text from an Retrospect Log
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