[LUGOS] sed ukazna vrstica
Saso
Saso at VSecureIT.net
Wed Jul 6 09:09:47 CEST 2005
In the message I received, Ales Ales writes:
>RMAN-06392: BP Key: 9370 Status: AVAILABLE Compressed: NO Tag: =
>TAG20
>050413T194140
>RMAN-06355: Handle: baza1_555537061_4_1 Media:=20
>RMAN-06335: List of Datafiles in backup set 9365
>
>tole v ukazno vrstico:
>
>change backuppiece 'baza1_555537061_4_1' delete;
awk -F "<tab>" '/Handle: [a-z]+/ {sub("Handle: ","",$2); print "change backuppiece '"'"'"$2"'"'"'" " delete;"}' file.log
Zgornje predvideva, da je format tvoje datoteke priblizno taksen:
RMAN-<koda>:<tab><komanda>:<space><nek_podatek>[<tab><komanda>:<space><nek_podatek> ...]
LP,
Saso
More information about the lugos-list
mailing list