Check if a file exists and is a regular file
Returns an exit code of 0 if the file exists and is a regular file (i.e. is not a directory or a symbolic link).
Authored by: Sidratul Muntahafile
Command
Copy
[[ -f file ]]
Tags
Edit in GitHub
Copied
Returns an exit code of 0 if the file exists and is a regular file (i.e. is not a directory or a symbolic link).
Authored by: Sidratul Muntaha[[ -f file ]]