• 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: Michael Slomski <email@hidden>
  • Date: Mon, 13 Mar 2006 22:39:22 +0100
  • Thread-topic: Extracting text from an Retrospect Log

Title: Re: Extracting text from an Retrospect Log
Hello Gnarlie,

yeeeeessss, this works nice. I’ve extended it now to

   
do shell script "sed -n \"`sed -n '/" & someRegex & "/=' /tmp/Retrospect.txt | tail -1`,\\$p\" /tmp/Retrospect.txt >/tmp/Last_Backuplog"

This way I’got a new file where I will try to strip everything between the “$[“ and “]”, the $ and brackets inclusive. After that I will have a clean textfile which I could send by mail if an error occured :-)

rest regards, you’ve already helped me very much
Michael


Gruß
Michael
 ---
Computerkartographie M. Slomski
Kartographie • Systemberatung & Betreuung
für Apple Macintosh


Schnorr-von-Carolsfeld-Str. 19
D-81927 München

Tel.: ++49 +89-929 40 57 oder ++49 +177-44 57 990
Fax.: ++49 +89-939 311 71
Email: email@hidden



am 13.03.2006 22:14 Uhr, Gnarlodious at email@hidden schrieb:

set someRegex to "\\\\]Retrospect\\\\$\\\\["
-- translate Mac to UNIX
do shell script "tr '\\r' '\\n'  < '/tmp/Operations Log' > /tmp/Retrospect.txt"

do shell script "sed -n \"`sed -n '/" & someRegex & "/=' /tmp/Retrospect.txt | tail -1`,\\$p\" /tmp/Retrospect.txt"

 _______________________________________________
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

References: 
 >Re: Extracting text from an Retrospect Log (From: Gnarlodious <email@hidden>)

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