我有一个这样的文件夹结构。
folders test1 test2.1 test49.85 test4.95.89 sample support util
这些都是文件夹。我需要删除所有以 test 开头的文件夹,最近的文件夹除外。我也可以访问最新 ${newestTestFolder} 的文件夹名称。
centos shell-script
centos ×1
shell-script ×1