MCQs > IT & Programming > Bash > Which sed options should you use to change the second-to-last instance of variable to rock so it would read: A constant is a variable that is a rock that isn't variable var="A constant is a variable that is a variable that isn't variable" echo "$var" | sed _____

Bash MCQs

Which sed options should you use to change the second-to-last instance of variable to rock so it would read: A constant is a variable that is a rock that isn't variable var="A constant is a variable that is a variable that isn't variable" echo "$var" | sed _____

Answer

Correct Answer: S/(.*)variable(.*variable)/\1rock\2/'

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