Improve 1989/jar.2/try.sh
Now it will cat each file before running jar.2 on it, prompting for both cat and the command itself. Spaces are added in between commands to help let things stand out better.
This commit is contained in:
1 parent
7c12aeeb0d
commit
66308ecd7c
2 files changed
+5
-2
No files matched your search
@@ -19,8 +19,13 @@ fi
|
||||
|
||||
for f in $FILES; do
|
||||
if [[ -e "$f" && -r "$f" ]]; then
|
||||
read -r -n 1 -p "Press any key to run: cat $f: "
|
||||
echo 1>&2
|
||||
cat "$f"
|
||||
echo 1>&2
|
||||
read -r -n 1 -p "Press any key to run: ./jar.2 < $f: "
|
||||
echo 1>&2
|
||||
./jar.2 < "$f"
|
||||
echo 1>&2
|
||||
fi
|
||||
done
|
||||
Reference in new issue
Block a user