Results 1 to 2 of 2
How can I write a simple bash script that will remove the oldest file in all directories, but it should display these files including their dates and ask me if ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-12-2008 #1
- Join Date
- May 2008
Removing the oldest file in all directories
- 12-06-2008 #2
1. go over the directories one by one.
2. in every directory, say ls -lrt, and take the last entries and remove it off ??
Have you got it ??
Or you want some thing else ??