i am learning shell scriptnig,
is there any way i can test the operation like checking file permission on a file..
like…
i know some of the way like. searching the file through find command using permission,
or in “ls…| grep ‘r–r–r’ smthg.. whatever permission u wan’t
I have some file how i check whether the file have the required permission or not..?\
Thanks in advance..
You can do something like:
Test for execution:
Test for writing:
Test for reading: