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.
In reply to Re: Re: Re^5: Unix - Keep the last modified file in the directory and move/copy the rest of the files.
by zengargoyle
in thread Unix - Keep the last modified file in the directory and move/copy the rest of the files.
by hyliau
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |