[LUGOS] sed ukazna vrstica

Boštjan Müller neonatus at neonatus.net
Tue Jul 5 19:53:56 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ales Ales wrote:
> Pozdravljeni,
> ali morda kdo ve kako bi uspel dobiti iz tegale:
> 
> RMAN-06392:         BP Key: 9370   Status: AVAILABLE  Compressed: NO  Tag: TAG20
> 050413T194140
> RMAN-06355:         Handle: baza1_555537061_4_1   Media: 
> RMAN-06335:   List of Datafiles in backup set 9365
> 
> tole v ukazno vrstico:
> 
> change backuppiece 'baza1_555537061_4_1' delete;
> 
> Najdlje sem prisel na tole resitev: [ more file.log | grep RMAN-06355
> | sed "-e /RMAN-06355*/ s/\(.* \)\(.*\)$/change backuppiece '\2'
> delete;/" ]
> change backuppiece '' delete;
> 
> 
> Pozdrav Ales


Zdaj ne vem kolko handle-ov imas tu notri, ce je samo eden potem naprimer:
$ echo -e "change backuppiece '`grep "Handle:" file.log |\
awk -F' ' '{print $3}'`' delete;"
$ change backuppiece 'baza1_555537061_4_1' delete;


Regards/Lep pozdrav

Boštjan Müller
- --
[*]    Bostjan Müller |n at neonatus.net| http://n.neonatus.net/     [*]
[*] PGP key --> finger: neonatus at neonatus.net, DSA id: 0x9B2FF108 [*]
[*]           Celular: +38641243189, ICQ #:7506644                [*]
     Software is like sex- the best is for free" -Linus Torvalds
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFCyskdGPt2q5sv8QgRApUoAJ9q1fxTfS3J5OPdccjrohK6H2PifQCfVT94
YYMn02mgn9xSRhM8ENP8OFo=
=iNBy
-----END PGP SIGNATURE-----


More information about the lugos-list mailing list