PDA

View Full Version : script linux copiare e spostare


texerasmo
16-05-2006, 11:59
se faccio mv *.txt *.log non mi funziona

se fa rm -fr *.txt i file sono 10.000 mi dice che la lista è troppo lunga.

come posso fare?

kingv
16-05-2006, 12:07
se faccio mv *.txt *.log non mi funziona


su fedora/red hat:
rename .txt .log *.txt
debian ha un programma diverso, guarda la man page se usi quella


se fa rm -fr *.txt i file sono 10.000 mi dice che la lista è troppo lunga.
come posso fare?

find . -maxdepth 0 -name *.txt -exec rm {} \;

texerasmo
16-05-2006, 13:06
grazie ancora..