Hands-on task
This task is step 11 of the course “sed: the stream editor”
sed: reordering via a backreference
In /root/in.txt there are lines of the form First Last. Rearrange them into the format Last, First (with a comma and a space). Write the result to /root/out.txt.
Reference:sed
What you'll practise:
- sed
- backreference
- capture groups
- sed -E
- reordering