diff options
author | tv <tv@xso> | 2011-09-09 15:37:29 +0200 |
---|---|---|
committer | tv <tv@xso> | 2011-09-09 15:37:29 +0200 |
commit | 6a0a39ab43ee2754c8919328aea53b9597621667 (patch) | |
tree | fb98e763f8165d8ab034e46372a37013ff0f80e6 | |
parent | f2b6ac7c5d777e168c4b2925cc9798aca9cd3a2d (diff) |
//noise/modules/help: use BRE @sed
-rwxr-xr-x | noise/modules/help | 6 |
1 files changed, 3 insertions, 3 deletions
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/$/[m/ - s:^([a-z]+) (.+):[35mtype [32m/\1[35m to \2:p' ;; + s:^\([a-z]\+\) \(.\+\):[35mtype [32m/\1[35m to \2:p' ;; (*) ## call for directory in `echo "$NOISE_PATH" | tr : \ ` ; do |