← All courses

sed: the stream editor

Fix a config or a log without opening an editor: substitutions, deleting and inserting lines, ranges and in-place editing.

18 tasks
  1. sed: replace the first occurrenceeasy
  2. sed: global replaceeasy
  3. sed: collapse an aligned tableeasy
  4. sed: trailing whitespace in YAMLeasy
  5. sed: editing a file in placeeasy
  6. sed: delete lines by patterneasy
  7. sed: print only matching linesmedium
  8. sed: substitution in a range of linesmedium
  9. sed: insert a line after a matchmedium
  10. Extract the block between markersmedium
  11. sed: reordering via a backreferencemedium
  12. sed: backup log dates to ISOmedium
  13. sed: mask phone numbers in a support logmedium
  14. sed: plain-text version of an emailmedium
  15. Bulk replacement in configseasy
  16. sed: reverse the order of lineshard
  17. Clean up a configmedium
  18. Turn config keys into variable nameshard