handle executables anywhere on line
This commit is contained in:
@@ -40,7 +40,7 @@ function slide_exec {
|
||||
!/^# /{
|
||||
print $0;
|
||||
}
|
||||
' "$1" | sed -n '/^'$2'# /,/^'$j'# /p' | grep "^\&( " | sed -e 's,^\&( ,,' -e 's,)$,,' )
|
||||
' "$1" | sed -n '/^'$2'# /,/^'$j'# /p' | grep "\&(.*)" | sed -e 's,[^\&]*\&( ,,' -e 's,)[^)]*,,' )
|
||||
# restore cursor position to bottom of slide
|
||||
echo -ne "${E}u"
|
||||
while read line
|
||||
@@ -53,7 +53,7 @@ function slide_exec {
|
||||
!/^# /{
|
||||
print $0;
|
||||
}
|
||||
' "$1" | sed -n '/^'$2'# /,/^'$j'# /p' | grep "^\$( " | sed -e 's,^\$( ,,' -e 's,)$,,' )
|
||||
' "$1" | sed -n '/^'$2'# /,/^'$j'# /p' | grep "\$(.*)" | sed -e 's,[^\$]*\$( ,,' -e 's, )[^)]*,,' )
|
||||
|
||||
}
|
||||
|
||||
@@ -234,8 +234,9 @@ Object Area Perimeter
|
||||
* "$ [1D( command )" to print the output
|
||||
* "& [1D( command )" run process in background
|
||||
|
||||
&( xeyes )
|
||||
$( ls )
|
||||
&( xeyes )
|
||||
$( ls )
|
||||
[s$( echo You can hide commands too... )[1K[uHidden command
|
||||
|
||||
# Hints: Other tools
|
||||
|
||||
@@ -257,7 +258,7 @@ $( ls )
|
||||
_jgs______/_ __ \__________
|
||||
| |
|
||||
| MarkSlider |
|
||||
|___________________________|
|
||||
|___________________________|[1K
|
||||
|
||||
# Hints: More tools
|
||||
* JPEG to ascii: jp2a
|
||||
|
||||
Reference in New Issue
Block a user