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


RSS Icon Subscribe to comments

You need to login to post a comment.