我在这里遵循本指南: http ://www.cyberciti.biz/tips/find-out-if-file-exists-with-conditional-expressions.html
每次我跑:$ [ -f /etc/passwd ] && echo "File exists" || echo "File does not exists"
我得到:
$: command not found
File does not exists
有什么建议吗?
我在这里遵循本指南: http ://www.cyberciti.biz/tips/find-out-if-file-exists-with-conditional-expressions.html
每次我跑:$ [ -f /etc/passwd ] && echo "File exists" || echo "File does not exists"
我得到:
$: command not found
File does not exists
有什么建议吗?