MCQs > IT & Programming > Bash > What is the result of this script? txt=Penguins [[ $txt =~ [a-z]{8} ]]; echo $?

Bash MCQs

What is the result of this script? txt=Penguins [[ $txt =~ [a-z]{8} ]]; echo $?

Answer

Correct Answer: 1, representing 'false', because the variable "txt" does not contain eight lowercase letters between a and z

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Bash Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Bash Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it