Im Trying to Execute a Command if Two Files Exist on a Location
If Only Either One of Two File Exist Script must Execute another different command
here is the script i tried
if [ -e /Users/NJ/Library && /Users/NJ/Desktop ];then
echo both
else
echo single
fi
You need to separate the tests into their own square brackets: