shell判断txt文件是否存在

shell判断文件是否存在

if [ ! -f "./Input/species.txt" ]; then
  echo "already exists"
else
  echo "not exists"
fi
posted @ 2022-08-29 20:52  bH1pJ  阅读(73)  评论(0编辑  收藏  举报