フォルダに含まれるファイルを検索します

#!/bin/bash

cat ./id.txt | while read line

do

    res=`grep $line ../* -R -s`

    if [ -z "$res" ] ##&& [ "$res" != " " ];

    then

        echo $line "无"

    else

        echo $line "有"

    fi

done

 

150件のオリジナル記事が公開されました 79件の賞賛 630,000回の閲覧+

おすすめ

転載: blog.csdn.net/liu0808/article/details/96992286