bash:files:check_if_a_file_exists
BASH - Files - Check if a File exists
#!/bin/bash filename=$1 if [ -f "$filename" ]; then echo "File exists" else echo "File does not exist" fi
bash/files/check_if_a_file_exists.txt · Last modified: 2021/01/26 12:37 by peter