hi,
I am not familiar in writing Perl script in Unix.
Currently, I need a unix perl script which will keep the latest file in the specific directory and move or copy the rest of the files which exist in the same directory to other directory. How should I write it in a unix Perl script.
E.g.
In /tmp directory, I have 10 files with diferrent date & time stated.
I want to keep the latest file only and the rest 9 files, I will either copy or move to the other directory by passing parameter.