Quote:
Originally posted by sistemi
I have to move 300000 files of 500000 (example filename =*2002*.PDF)
from a directory to another .
How can i do?
when i make a list with ls command ,i obtain the parameter list is too long.
|
This should create a list of files with the move command against it.
while `ls -l *.pdf | awk '{print $9}'` in fileName
do
echo mv "$fileName" /destination_directory > mvfile.bat
done
Once the above is done, chmod the mvfile.bat to executable and run the script.