I had 2 directories ../in/ and ../temp/.My question is how to write bash script to keep the oldest file or directories in same ../in/ directory and remaining files or directories are moved to ../temp/ directory.Need help for this requirement.
how to keep oldest file in same directory
shell script;files;timestamps