bash:test_file_existence
This is an old revision of the document!
BASH - Test File Existence
#!/bin/bash filename=$1 if [ -f "$filename" ]; then echo "File exists" else echo "File does not exist" fi
bash/test_file_existence.1576610082.txt.gz ยท Last modified: 2020/07/15 09:30 (external edit)