Delete blank lines with sed


/ Published in: Bash
Save to your folder(s)

Find any line with beginning of line followed by zero or more tabs, spaces followed by end of line -- delete it.


Copy this code and paste it in your HTML
  1. sed '/^[\t ]*$/d' file

Report this snippet


Comments


You need to login to view comments.