LPI
101-500 · Question #498
101-500 Question #498: Real Exam Question with Answer & Explanation
Sign in or unlock 101-500 to reveal the answer and full explanation for question #498. The question stem and answer options stay visible for context.
GNU and Unix Commands
Question
Given the following input stream: txt1.txt atxt.txt txtB.txt Which of the following regular expressions turns this input stream into the following output stream? txt1.bak.txt atxt.bak.txt txtB.bak.txt
Options
- As/^.txt/.bak/
- Bs/txt/bak.txt/
- Cs/txt$/bak.txt/
- Ds/^txt$/.bak^/
- Es/[.txt]/.bak$1/
Unlock 101-500 to see the answer
You've previewed enough free 101-500 questions. Unlock 101-500 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#regular expressions#sed substitution#text processing#pattern anchors