这是我一直在尝试的,但是没有成功.如果我想检查〜/ .example目录中是否存在文件
FILE=$1 if [ -e $FILE ~/.example ]; then echo "File exists" else echo "File does not exist" fi
linux bash terminal scripting file
bash ×1
file ×1
linux ×1
scripting ×1
terminal ×1