ls列出排除的文件

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

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

 

posted @ 2019-10-09 16:31  paul_hch  阅读(2577)  评论(0编辑  收藏  举报