From 6a0a39ab43ee2754c8919328aea53b9597621667 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 9 Sep 2011 15:37:29 +0200 Subject: //noise/modules/help: use BRE @sed --- noise/modules/help | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'noise') diff --git a/noise/modules/help b/noise/modules/help index bc4c2931..0763f3a0 100755 --- a/noise/modules/help +++ b/noise/modules/help @@ -7,10 +7,10 @@ case "$1" in done 2>/dev/null done ## print all documented built-in commands - sed -rn 's:^noise_([a-z]+)\(\) \{ # (.+)?$:\1 \2:p' "$NOISE" - } | sort | uniq | sed -rn ' + sed -n 's:^noise_\([a-z]\+\)() { # \(.\+\)\?$:\1 \2:p' "$NOISE" + } | sort | uniq | sed -n ' $s/$// - s:^([a-z]+) (.+):type /\1 to \2:p' ;; + s:^\([a-z]\+\) \(.\+\):type /\1 to \2:p' ;; (*) ## call for directory in `echo "$NOISE_PATH" | tr : \ ` ; do -- cgit v1.2.3