Skip to content

Instantly share code, notes, and snippets.

@Eishfaq
Created December 5, 2019 09:24
Show Gist options
  • Select an option

  • Save Eishfaq/989de7864dc533a08542d167b97bb2f7 to your computer and use it in GitHub Desktop.

Select an option

Save Eishfaq/989de7864dc533a08542d167b97bb2f7 to your computer and use it in GitHub Desktop.
sed -i '/^$/d' list.txt
It will overwrite the file with no blank lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment