Bash Scripting - File Operations in Scripts
Which of the following is the correct syntax to check if a file
report.log exists and is a regular file in bash?report.log exists and is a regular file in bash?-f option checks if the file exists and is a regular file (not directory).if [ -f report.log ]; then ... fi correctly checks for a regular file.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions