Skip to content

Instantly share code, notes, and snippets.

@rocknr011
Last active October 21, 2019 11:34
Show Gist options
  • Select an option

  • Save rocknr011/eea6e5c784933017d75178e721cef7ab to your computer and use it in GitHub Desktop.

Select an option

Save rocknr011/eea6e5c784933017d75178e721cef7ab to your computer and use it in GitHub Desktop.
sed: useful commands
#!/bin/sh
# To remove comment and blank lines use:
sed '/^\s*[;#].*$/d;/^$/d' file-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment