[Php-it] [OT] Eliminare tutte le occorrenze di un file in
unaDirecotory
Emiliano Gabrielli (aka AlberT)
AlberT at superalbert.it
Thu Sep 21 12:30:56 CEST 2006
On Thursday 21 September 2006 12:26, Marco Mex wrote:
> find . -type d |grep /CVS | rm -Rf
>
> > Pare che rm non supporti la pipe line...
se find è abbastanza revente puoi usare "-exec" come ti hanno già suggerito..
altrimenti usi dei metodi + unix-ari come:
find . -type d -name "CVS" | xargs rm -Rf
o
for f in $(find . -type d -name "CVS")
do
rm -Rf $f
done
--
<?php echo ' Emiliano Gabrielli (aka AlberT) ',"\n",
' socio fondatore e membro del direttivo del GrUSP ',"\n",
' AlberT_at_SuperAlberT_it - www.SuperAlberT.it ',"\n",
' IRC: #php,#AES azzurra.com ',"\n",'ICQ: 158591185'; ?>
More information about the Php-it
mailing list