Hi I'm trying to do an if which gets a path to a directory as an argument and checks if file.txt is in the directory.And returns 1 if it is , 0 otherwise.     if [ -e $1/file.txt ]; then         exit 1     else exit 0     fiAlso i've tried ls method     ls $1/file.txt && exit 1 || exit 0Is there any other method? Or i am missing something?
Check if there is a certain file in a directory
files;directory;test