Abh*_*ogi 1 linux bash scripting
#!/bin/bash -x
echo "Enter file name: "
read fileName
fileName=`pwd`"/$fileName"
if [ -f $fileName ]; then
echo "file is present"
fi
Run Code Online (Sandbox Code Playgroud)
即使我通过在开始和结束时添加引号来更改fileName的值..脚本仍然无法正常工作.