aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-05-24 21:40:45 +0200
committerDuncaen <mail@duncano.de>2017-05-24 21:40:45 +0200
commitd84b592b15a0c139b507df08b350ba278ee002a2 (patch)
tree3266c9914da431090f299e414a46859ebeae509f
parentb000a1b21b4cd1575f1705b901e06ea71126916a (diff)
downloaddotfiles-d84b592b15a0c139b507df08b350ba278ee002a2.tar.gz
bin/twoman: portability
-rwxr-xr-xbin/twoman2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/twoman b/bin/twoman
index 46ab15f..7581ea8 100755
--- a/bin/twoman
+++ b/bin/twoman
@@ -3,5 +3,5 @@
for cmd; do
cmd=$(command -v "$cmd" 2>/dev/null)
[ -z "$cmd" ] && continue
- sed -n '1{/^[^#][^!]/q;d};0,/^$\|^[^#]/s/^# //p' $cmd
+ sed -rn '1{/^[^#][^!]/q;d;};/^$|^[^#]/q;s/^# //p' $cmd
done