Find the answer to your Linux question:
Results 1 to 3 of 3
I have been trying, unsuccessfully, to concoct either a script or a command which would copy some files that I am able to "find" by using "find -name '*.ext' -ctime ...
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    6

    Post Stumbling programmer

    I have been trying, unsuccessfully, to concoct either a script or a command which would copy some files that I am able to "find" by using

    "find -name '*.ext' -ctime n"

    Can anyone contribute some code/coding?

    Muchly appreciate any help.

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    This copies files whose status was changed in last 3 days to /home/user:

    Code:
    find -ctime -3 -iname '*.ext' -exec cp {} /home/user \;
    Regards

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Posts
    6
    It does so.

    Thank you so VERY much.

    I REALLY hope to get a handle on this sometime soon.

    Thanks again

    Allan

Posting Permissions

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