(Bash) Pipe `find` output to `mv`
- Use
-execoption offind:find ${DIR} -name "${SOME_NAME_QUALIFIER}" -exec mv {} ${DST_DIR} \; - Pipe to
xargswith variable to iterate over each item infindfind ${DIR} -name "{SOME_NAME_QUALIFIER}" | xargs -I '{}' mv {} ${DST_DIR}
References:
Written on September 13, 2021
