in reply to Re: ^4 Parse backup log
in thread Parse backup log
Do you want to match all tapes, or just the frozen ones? It would appear you only want to match frozen tapes. A match function like this:
would match only the frozen tapes and then run the create_entry() function for each match.# # Go through each line of input and create entries for only tapes # matching the "FROZEN" status. # sub match { while (<IMAGES>) { next unless m/\(FROZEN\)/; # skip non-frozen tapes chomp; s/^\s+//; # remove any leading spaces create_entry(split(/\s+/)); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ^6 Parse backup log
by mrbbq (Sexton) on Apr 20, 2004 at 20:44 UTC | |
|
Re: ^6 Parse backup log
by mrbbq (Sexton) on Apr 20, 2004 at 20:53 UTC | |
by Belgarion (Chaplain) on Apr 20, 2004 at 21:18 UTC | |
by mrbbq (Sexton) on Apr 20, 2004 at 22:20 UTC |