通过find 路径 -name  “包含的字符串” | grep -v “要过滤的字符串” | sort  >> filePath.txt实现

其中“|”为管道符,表示前者的输出作为后者的输入

sort为排序

 >>为追加输出

例如:

find /mnt/test -name *.fa.gz | grep -v "part" |sort >> LanePath.list

 

posted on 2024-02-18 14:26  caicai2019  阅读(89)  评论(0编辑  收藏  举报