Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Move Files Using Find And Exec

DZone's Guide to

Move Files Using Find And Exec

·
Free Resource

find . -name "xyz*" -exec bash -c "mv {} ./xyz-dir/" \;
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}