Help piping find to cp



  • I have a directory with a lot of subdirectories that all have loads of files, I am trying to find all files created after a certain date and copy them over to a single directory elsewhere.
    so far this is what I have but it’s not working for some reason
    1find . -newermt "2020-09-30 20:42" -exec cp {} ./tmp/1 \;

    any help?



  • Sorted


Log in to reply
 

Suggested Topics

1
Online

366
Users

282
Topics

1.4k
Posts

Copyright © 2020 | info@shutfim.com