Permalink
Browse files

Use xargs for mv to handle large file counts.

  • Loading branch information...
GraylinKim committed Feb 14, 2013
1 parent e6d5b3c commit 5d65a56f4ffb58b82b71fd199aea285424f596c3
Showing with 1 addition and 1 deletion.
  1. +1 −1 bin/process.sh
View
@@ -85,7 +85,7 @@ for file_type in "${file_types[@]}"; do
if [ ! -r $dest/$year/$file_type/ ]; then
mkdir -p $dest/$year/$file_type
fi
- mv $work/$file_type/* $dest/$year/$file_type/
+ find $work/$file_type/ -type f | xargs mv -t $dest/$year/$file_type/
fi
done

0 comments on commit 5d65a56

Please sign in to comment.