shell语句判断txt中是否包含字符串

shell语句判断txt中是否包含字符串

if [ $(grep -c "$species" $speciesTxtFile) -ne '0' ]; then

做一些事儿

fi


                
posted @ 2022-08-29 21:53  bH1pJ  阅读(115)  评论(0编辑  收藏  举报