Finding and moving files with ease

Here's a really handy set of unix commands for finding files matching a specified pattern and moving those files to a specified location.

find /source/path -type f -iname "glob pattern" -print0 | xargs -0 mv --target-directory=/target/path

I used this recently to find and move all video files from a set of folders containing images and video. Here's the command I used:

find ./ -type f -iname "*.MOV" -print0 | xargs -0 mv --target-directory=~/videos

More Information