Find the answer to your Linux question:
Results 1 to 3 of 3
Hi. I've got two directories ('original' and 'copy') with subdirectories inside and I edit files within 'original'. I want to copy *only* modified files of 'original' into 'copy'. Which is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    11

    How to copy only modified files between two directories


    Hi.

    I've got two directories ('original' and 'copy') with subdirectories inside and I edit files within 'original'.

    I want to copy *only* modified files of 'original' into 'copy'. Which is the best way to do this with shell commands?

    Thank you very much.

  2. #2
    Just Joined! T3ddy's Avatar
    Join Date
    Dec 2007
    Location
    Germany
    Posts
    19

  3. #3
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,133
    You might also consider looking at rsync, which is probably one of the most useful tools in the universe. Well, it's pretty useful anyway.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •