back to labs
Sed: Multiple Commands in One Pass
MediumSed & Awk5-10 minThe brief
You have two edits to make to the same file, and you would rather do them in a single pass than run the tool twice.
In /root/work/status.txt, change every 'PENDING' to 'DONE' and every 'oldserver' to 'newserver' — in one invocation — saving to /root/work/out.txt.
Grading compares against the result of both substitutions.
What you'll do
- Apply both substitutions in a single invocation
- Save the doubly-edited text to /root/work/out.txt
Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.
