Skip to content

Commit

Permalink
Use xargs for mv to handle large file counts.
Browse files Browse the repository at this point in the history
  • Loading branch information
GraylinKim committed Feb 14, 2013
1 parent e6d5b3c commit 5d65a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/process.sh
Expand Up @@ -85,7 +85,7 @@ for file_type in "${file_types[@]}"; do
if [ ! -r $dest/$year/$file_type/ ]; then if [ ! -r $dest/$year/$file_type/ ]; then
mkdir -p $dest/$year/$file_type mkdir -p $dest/$year/$file_type
fi fi
mv $work/$file_type/* $dest/$year/$file_type/ find $work/$file_type/ -type f | xargs mv -t $dest/$year/$file_type/
fi fi
done done


Expand Down

0 comments on commit 5d65a56

Please sign in to comment.