ls列出排除的文件

今天有个需求,将从日志文件夹中列出它排除旧备份日志的文件。

ls -lhrt --ignore="*.gz" --ignore="*.zip"

猜你喜欢

转载自www.cnblogs.com/paul8339/p/11642648.html