I have to check if a group of files is readable. I know how I would go about checking one file by using [ -r file.txt ], but how would I go about writing a loop that would check multiple files (including directories)?E.g., file1.txt file2.txt directory1 directory2 file3.txt.
How to check if a group of files is readable?
shell script;files;test