Last active
October 21, 2019 11:34
-
-
Save rocknr011/eea6e5c784933017d75178e721cef7ab to your computer and use it in GitHub Desktop.
sed: useful commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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