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

Re: comando rm - remover w,x,y exceto z



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 11-12-2009 12:31, Eli Rigobeli wrote:
> Muito boa a solução
> find DIR ! -name 'led_zeppelin' -print -exec rm {} \;
> 
> Não sabia que era possível utilizar o NOT no find.

	Você também pode usar o -delete do find :)


find DIR ! -name 'led_zeppelin' -delete


Abraço,
- --
Felipe Augusto van de Wiel (faw)
"Debian. Freedom to code. Code to freedom!"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAkslVk0ACgkQCjAO0JDlykYfFwCglNbde21BWb7lpDQm/2zK4hR0
L1kAnRQoAc73qu6B6ZTKQGR5fVLUM+Xk
=zFOh
-----END PGP SIGNATURE-----


Reply to: