Hands-on task
This task is step 4 of the course “sed: the stream editor”
sed: trailing whitespace in YAML
The linter complains about /root/deploy.yml: some lines end with leftover spaces and tabs. Remove trailing whitespace on every line, but keep the indentation at the start of lines (it is significant in YAML). Write the result to /root/deploy.clean.yml.
What you'll practise:
- sed
- s/// substitution
- [[:blank:]]
- $ anchor