hi
I would like to use the result of a find command into a copy command
find -iname *.xlsx
and then cp * to dir/
does anyone know how to do this?
find files and copy them
Re: find files and copy them
The easiest way (and because it also copies files with spaces in the name) is:
It is an option of find,
for more info check man find
Code: Select all
find -iname *.xlsx -exec cp '{}' dir/ \;
for more info check man find