back to labs
Sed: Backreferences
MediumSed & Awk5-10 minThe brief
A file lists 'user:group' pairs, and they need to be flipped to 'group:user'.
Swap the two colon-separated fields on every line of /root/work/pairs into /root/work/out.txt.
Grading compares against the swapped result.
What you'll do
- Flip the two colon-separated fields on every line
- Save the swapped pairs 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.
