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

Re: Commande find



On Sat, Jan 22, 2011 at 10:06:27PM +0100, Fabien LUCE wrote:
> je viens d'essayer un petit:
> tar cjvf test.tar.bz2 $(find . -mindepth 1 -name "*" -exec echo {} +)

J'ai peut-être raté un épisode, mais pourquoi ne pas faire
un simple:

tar cjvf test.tar.bz2 *

?

Sinon, j'aurais tendance à ajouter des guillements autour
des noms de fichiers qui contiennent des espaces, donc:

tar cjvf test.tar.bz2 $(find . -mindepth 1 -name "*" -exec echo \"{}\" +)

Pas testé, donc sans garantie.

Y.


Reply to: