shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Zerar arquivo texto sem apaga-lo


From: Renato Diogo
Subject: Re: [shell-script] Zerar arquivo texto sem apaga-lo
Date: Wed, 3 Jan 2007 13:22:31 +0000 (GMT)

Vlw, deu certo...

brigadao;;;


--- Flavio Torres <address@hidden>
escreveu:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>  
> Renato Diogo escreveu:
> >
> >  excluir e criar o arquivo novamente.
> >
> > Eu consigo pegar os arquivos de desejo assim:
> > find /home/vhosts/*/statistics/logs/ -size +50000k
> > -name "*log"
> >
> > p
> >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Acrescente o xargs:
> 
> find /home/vhosts/*/statistics/logs/ -size +50000k
> -name "*log" |
> xargs -i bash -c "echo  > {}"
> 
> []'s
> 
> 
> - --
>  
> 
>
/*---------------------------------------------------*/
> /*    *    Flavio Torres - Administrador de
> Sistemas*/
> /*   /_\   */int
> y,z;main(x){x=(x>0?-9:x);z=((z=(x+5)
> /*  o. .o 
> */)>0?z:-z);printf(!x&&++y?"\n":z?z>y%3+y/
> /*  ((Y))  */3?"
> ":x<-5?"/":"\\":y?"|":"*");y-9?main(
> /* ()) (() */++x):puts("  _|_|_")&&puts(" 
> \\___/");}
> /*  ()^()  A party animal isn't just for
> Christmas.*/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (MingW32)
>  
>
iD8DBQFFm6bpNRQApncg294RAtlSAKCrFZOiTwDvGWvKBw+d7CaHTq7LxgCcCysL
> omMxDsPchWYgQuKHkxkrvLA=
> =3l85
> -----END PGP SIGNATURE-----
> 
> 


________________________________________________
Renato de Oliveira Diogo

Bacharel em Ciência da Computação
UNESP - Bauru

address@hidden
address@hidden

__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/ 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]