Improve 2018/burton1/try.sh
This commit is contained in:
1 parent
f6188dd4d8
commit
a85ebbcfc6
1 file changed
+6
-6
+6
-6
@@ -13,27 +13,27 @@ fi
|
|||||||
make CC="$CC" everything >/dev/null || exit 1
|
make CC="$CC" everything >/dev/null || exit 1
|
||||||
|
|
||||||
for i in prog scripthd.sh; do
|
for i in prog scripthd.sh; do
|
||||||
echo "$ ./$i < prog.c" 1>&2
|
read -r -n 1 -p "Press any key to run: ./$i < prog.c: "
|
||||||
|
echo 1>&2
|
||||||
./"$i" < prog.c
|
./"$i" < prog.c
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: ./$i < prog (space = next page, q = quit): "
|
read -r -n 1 -p "Press any key to run: ./$i < prog (space = next page, q = quit): "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
./"$i" < prog | less -EXF
|
./"$i" < prog | less -rEXFK
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: ./$i < scripthd.sh (space = next page, q = quit): "
|
read -r -n 1 -p "Press any key to run: ./$i < scripthd.sh (space = next page, q = quit): "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
./"$i" < scripthd.sh | less -EXF
|
./"$i" < scripthd.sh | less -rEXFK
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: head $0 | ./$i: "
|
read -r -n 1 -p "Press any key to run: head $0 | ./$i: "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
head "$0" | ./"$i"
|
head "$0" | ./"$i"
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: tail -n 15 Makefile | ./$i: "
|
read -r -n 1 -p "Press any key to run: tail -n 15 Makefile | ./$i (space = next page, q = quit): "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
tail -n 15 Makefile | ./"$i"
|
tail -n 15 Makefile | ./"$i" | less -rEXFK
|
||||||
done
|
done
|
||||||
Reference in new issue
Block a user