Forums

Resolved
0 votes
Hi,

I want to create a script. This script must find and then copy the result of the find action to a other disk. Anyone any experience with this?
Thursday, December 18 2014, 06:25 PM
Share this post:
Responses (2)
  • Accepted Answer

    Thursday, December 18 2014, 07:20 PM - #Permalink
    Resolved
    0 votes
    After some googling i've found this solution:


    find /path/to/directory/ -name *.extension -exec cp -rfpv {} /path/to/directory/ \;


    This is working. Is it also possible to log the copy action?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 18 2014, 06:30 PM - #Permalink
    Resolved
    0 votes
    To answer a part of the question. You can do:


    find /path -name file.ext
    The reply is currently minimized Show
Your Reply