Move Files That Match A find Pattern

November - 2021

Example:

find /Users/alans/my-files/ -maxdepth 1 -name 'some-name-*' -print0 | xargs -0 -I{} mv {} /Users/alans/my-files/_archive/

Searches the directory:

/Users/alans/Dropbox/grimoire/

Finds files who's name starts with:

some-name-

Moves the files into:

/Users/alans/my-files/_archive/