I have an if in my bash script that has to check if EITHER of the 2 files exists, if they don't exist it should echo match.Code I have:if [[ ! -f /etc/benchmarking/code ]] && [[ ! -f /etc/benchmarking/code.class ]]; then echo matchfiBut this doesn't not seem to work for some reason. I am 110% sure that these 2 files do not exist. I don't get any errors, it just doesn't enter the if.I am new to bash scripting so I'm not sure what could be wrong.
Logical AND in a bash script
bash;shell script