I have a directory with about 130 subdirectories in it.
Here's the main directory:
/home/data/all/
Subdirectories are like this:
/home/data/all/whatever
/home/data/all/test
/home/data/all/information
I want to have exactly 100 subdirectories in this main directory. The oldest subdirectories (based on last modified date) should automatically be removed to make sure there's always exactly 100 directories.
Is there any way to do this with a one-liner?