Linux Data Cleanup Tools
In Linux, it is sometimes necessary to regularly delete files or directories that are outdated. The following script can be used for scheduled execution, and those who need it can use it directly.Script content (only deletes files under the directory) #!/bin/bash# Path: /opt/testBASE_DIR="/opt/test" # Get the year and month of last month (format: YYYY-MM)LAST_MONTH=$(date -d … Read more