diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-02-11 17:36:52 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-02-11 17:36:52 -0500 |
| commit | 4a208e375dd99a32fd7947c6a11bfefa06f75ea4 (patch) | |
| tree | 91b4204eb54550cc3d871791624986ebeed42f4a /strip_openvpn_cfg.sh | |
| parent | 5ea6e75a796633d32f2ddce373242c972c7b2e1d (diff) | |
| download | dotfiles-4a208e375dd99a32fd7947c6a11bfefa06f75ea4.tar.gz dotfiles-4a208e375dd99a32fd7947c6a11bfefa06f75ea4.tar.xz | |
Added a command to strip comments and empty lines from the openvpn configurations
Diffstat (limited to 'strip_openvpn_cfg.sh')
| -rwxr-xr-x | strip_openvpn_cfg.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/strip_openvpn_cfg.sh b/strip_openvpn_cfg.sh new file mode 100755 index 0000000..be70273 --- /dev/null +++ b/strip_openvpn_cfg.sh @@ -0,0 +1,2 @@ +#!/bin/sh +cat $@ | sed -re'/^(;|#)/d' -e'/^$/d' |
