Test the existence of a file in bash

If you need to test in a bash script if a file exist you can launch the following command.

Note if the file exist , but , is empty this also test true and tell you that the file exist

Leave a Comment

Your email address will not be published. Required fields are marked *