bash - Deleting all folders older than a specified date, except some -


i have delete directories in path, older specified date except of them, in bash.

i know names of directories shouldn't deleted.

use find. here's example should work @ least on freebsd:

find . -type d -not -newerct 'x days ago' -not -name dir1 -not -name dir2 -delete 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -