I want to list the files older than 10 days. Currently am using
find ./ -mtime +10 -exec ls -ltr {} \;
command. But I want to execute the same command in 16 directories at a time and want an output asking to remove those file?
Please help me to design the script.
You know that you can have find look into several directories: find dir1 dir2 dirn -mtime ... . What exactly are you asking for in the second part of your question if not -exec rm {} ?
Thanks for the info Rudic given on [find] .
I started learning scripting as I am beginner.
Please suggest any document to learn scripting. provide any link/name.