JtheRipper
IS-IT--Management
Hi there,
I have a text file (let's say temp.txt) that looks as follows:
I want to extract the following:
"extraprd1" and "intradev1", and write them to another text file. In other words, I want everything between "Succeeded. (" and "Failed)".
I have some scripting experience, but am not sure on how to go about doing this.
Any info/help will be greatly appreciated.
Thanks,
J.
I have a text file (let's say temp.txt) that looks as follows:
Code:
NetWorker savegroup: (alert) NT Incremental completed, total 43 client(s), 0 Hostname(s) Unresolved, 2 Failed, 41 Succeeded. (extraprd1,
intradev1 Failed)
Start time: Wed Oct 13 18:00:00 2004
End time: Wed Oct 13 22:33:58 2004
--- Unsuccessful Save Sets ---
* extraprd1: e:: (returned from savefs) skipped.
The saveset returned from savefs probe does not match the one specified for the client.
* intradev1: e:: (returned from savefs) skipped.
The saveset returned from savefs probe does not match the one specified for the client.
--- Successful Save Sets ---
Successful Save Sets written to verified media noted with "V" in first column.
* apps1:C: savegrp: suppressed 1 lines of output - check daemon.log for details.
* apps1:C: save: C:Documents and SettingsAll UsersApplication
I want to extract the following:
"extraprd1" and "intradev1", and write them to another text file. In other words, I want everything between "Succeeded. (" and "Failed)".
I have some scripting experience, but am not sure on how to go about doing this.
Any info/help will be greatly appreciated.
Thanks,
J.