aboutsummaryrefslogtreecommitdiff
path: root/strip_openvpn_cfg.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-02-11 17:36:52 -0500
committerMitch Riedstra <mitch@riedstra.us>2018-02-11 17:36:52 -0500
commit4a208e375dd99a32fd7947c6a11bfefa06f75ea4 (patch)
tree91b4204eb54550cc3d871791624986ebeed42f4a /strip_openvpn_cfg.sh
parent5ea6e75a796633d32f2ddce373242c972c7b2e1d (diff)
downloaddotfiles-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-xstrip_openvpn_cfg.sh2
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'