in reply to Re: Re^5: Unix - Keep the last modified file in the directory and move/copy the rest of the files.
in thread Unix - Keep the last modified file in the directory and move/copy the rest of the files.

Here is the query from my colleague again. What if I want to keep the last 5 hour modified file in the directory and move/copy the rest of the files.

you should tell your colleague to stop changing the requirements. things are now complicated enough that a perl solution would be better than a shell solution. see the other responses in the thread for pointers in that direction.

  • Comment on Re: Re: Re^5: Unix - Keep the last modified file in the directory and move/copy the rest of the files.

Replies are listed 'Best First'.
Re: Re: Re: Re^5: Unix - Keep the last modified file in the directory and move/copy the rest of the files.
by hyliau (Initiate) on Jun 10, 2003 at 07:10 UTC
    hi zengargoyle, Sorry for the irritating and complexity request. I will look at other responses in the thread for pointers. At least I knew that to keep track last modified file base on time will be good to use perl script. Million Thanks. rgds, hyliau