Frequently used sed commands:

  • Remove lines that match a pattern:
  • sed -i '/pattern/d' file.txt