[LUGOS] sed ukazna vrstica
Ales Ales
ales.lugos at gmail.com
Wed Jul 6 10:00:08 CEST 2005
tole je resitev ki sem jo iskal in nasel:
sed -n "/RMAN-06355/p" ob_tape.log | awk '{print "change backuppiece
'"'"'"$3"'"'"'" " delete;"}'
Hvala Bostjanu in Sasotu za reply-e!
Pozdrav Ales
On 7/6/05, Saso <Saso na vsecureit.net> wrote:
> 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
> _______________________________________________
> lugos-list mailing list
> lugos-list na lugos.si
> http://liste2.lugos.si/cgi-bin/mailman/listinfo/lugos-list
>
More information about the lugos-list
mailing list