How To Check If a File or Directory Exists Using Shell Script?

One of the common tasks in shell scripting in Linux/Mac OS, checking if a file or directory exists already and to create the file/directory if it does not exists. Here is how to check if a file or directory exists in Linux shell script. The basic syntax to check if a file exists is and… Continue reading How To Check If a File or Directory Exists Using Shell Script?