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: Flavio Torres
Subject: Re: [shell-script] Zerar arquivo texto sem apaga-lo
Date: Wed, 03 Jan 2007 09:51:54 -0300
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

-----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-----



reply via email to

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