Scripting question
find ${ORIGIN_DIR} -name 'list_*' -o -name 'test_*' -exec cp {} ${TARGET_DIR} \;
What I am trying to do is grab all the files in ORIGIN_DIR that start with list_ or test_ and copy them into TARGET_DIR folder
The above code runs without an issue but no file gets copied.
I also tried running
find ${ORIGIN_DIR} -name 'list_*' -o -name 'test_*'
and it outputs the desired results to a screen so i know I am attempting to copy the correct files