Bash Scripting - Conditionals
Which of the following is the correct syntax to check if file
file.txt exists AND is readable in bash?file.txt exists AND is readable in bash?file.txt exists AND is readable, so both conditions must be true.-a means AND, so [ -e file.txt -a -r file.txt ] is correct. Using -o means OR, which is wrong here. Using && inside [ ] is invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions