Move small files to separate directory in one command

Loop files under a set weight to move it to a directory.

 bash | 
 
 copy code |
?

1
for f in `find . -iname "*.JPG" -size -500k`; do mv ${f} small; done