Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use xargs for mv to handle large file counts.

  • Loading branch information...
commit 5d65a56f4ffb58b82b71fd199aea285424f596c3 1 parent e6d5b3c
@GraylinKim GraylinKim authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/process.sh
View
2  bin/process.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.