Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Copy a file to all subfolders of a folder with one command' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Copy a file to all subfolders of a folder with one command
Authored by: NumbuhOne on Mar 02, '10 10:05:39AM
to test the commands find's -exec command line argument will invoke, prepend the echo command to be invoked:

find . -type d -exec echo cp php.ini {}/ \;

that will display the commands without actually invoking them.

[ Reply to This | # ]