find

Find files bigger then 10 MB and move them to path:

find . -type f -size +10M -exec mv -t /path/where/to/move {} +

That will use find's -exec option which replaces the {} with each find result in turn and runs the command you give it. In this case, we are using the + version of -exec so that we run as few mv operations as possible

Last updated