摘要: shell语句判断txt中是否包含字符串 if [ $(grep -c "$species" $speciesTxtFile) -ne '0' ]; then 做一些事儿 fi 阅读全文
posted @ 2022-08-29 21:53 bH1pJ 阅读(115) 评论(0) 推荐(0) 编辑
摘要: shell判断文件是否存在 if [ ! -f "./Input/species.txt" ]; then echo "already exists" else echo "not exists" fi 阅读全文
posted @ 2022-08-29 20:52 bH1pJ 阅读(73) 评论(0) 推荐(0) 编辑