We have a script that was written to read a control file to delete records within certain directories. However, if the permissions aren't set correctly on the control file, the script deletes everything from the current working directory.
How can you check the permissions of a file in a if...then statement before moving on in the script to delete.
Thanks!
How can you check the permissions of a file in a if...then statement before moving on in the script to delete.
Thanks!