Bash Scripting - Conditionals
Which of the following is the correct syntax to check if file
data.txt exists AND is readable using logical operators inside [ ]?data.txt exists AND is readable using logical operators inside [ ]?[ ], -a means AND, so use it to combine two conditions.-e data.txt checks if file exists, -r data.txt checks if readable. Combined with -a means both must be true.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions