MCQs > IT & Programming > Linux > Assume the variable myNumber holds a string consisting of 10 digits. What will this command output? echo \$myNumber | sed -e 's/^[[:digit:]][[:digit:]][[:digit:]]/(&)/g'

Linux MCQs

Assume the variable myNumber holds a string consisting of 10 digits. What will this command output? echo \$myNumber | sed -e 's/^[[:digit:]][[:digit:]][[:digit:]]/(&)/g'

Answer

Correct Answer: It will output the same 10-digit number, but the first 3 digits will be inside parentheses.

Explanation:

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

Linux Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Linux Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it