I read one of your post on how to delete files in a given directory except the latest 2 file. I find it very helpful.
Please I am having a situation where i really want to carry out the same thing for multiple directories. I want to be able to store the directory list in a different text file and just invoke call each line (path) from the list. Could you please help with a simple script for this.
Hi Bernard,
I read one of your post on how to delete files in a given directory except the latest 2 file. I find it very helpful.
Please I am having a situation where i really want to carry out the same thing for multiple directories. I want to be able to store the directory list in a different text file and just invoke call each line (path) from the list. Could you please help with a simple script for this.
Thank you.