Find the answer to your Linux question:
Results 1 to 3 of 3
Hey folks, Is there any command line tool which would make a list of the changed files? I have 2 directories: 1. apple 2. orange Actually both store the same ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    2

    A list of changed files

    Hey folks,

    Is there any command line tool which would make a list of the changed files?

    I have 2 directories:
    1. apple
    2. orange

    Actually both store the same files. However sometime files under 'apple' are updated. I'm looking for a tool which would compare the 2 directories and would list out the new files so that I could manually copy those new files to 'orange' directory.

    I know that I can use "cp -R -u" but I just want to update some of the files rather than all of them.

    Thanks,

    James

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Sound like you might want to look at rsync

  3. #3
    Just Joined!
    Join Date
    Apr 2009
    Posts
    2
    Hey reed9,

    Thanks for the reply.

    Well, I'm intending to manually copy only a fraction of the new files with a PHP/HTML checkbox list.

    So the changed files would be listed and we could select with a checkbox which we want to copy to the other folder.

    Once again, I just need a Linux command line tool which would print to the screen these new files.

    Any suggestions?

Posting Permissions

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