Merge pull request #2346 from xexyl/adrian92-try
This commit is contained in:
1 file changed
+14
-12
+14
-12
@@ -15,16 +15,17 @@ fi
|
|||||||
make CC="$CC" everything || exit 1
|
make CC="$CC" everything || exit 1
|
||||||
# DON'T clear the screen so they can see how the files are generated!
|
# DON'T clear the screen so they can see how the files are generated!
|
||||||
|
|
||||||
echo 1>&2
|
for f in adrian.grep.*; do
|
||||||
read -r -n 1 -p "Press any key to show: adrian.grep.try: "
|
echo 1>&2
|
||||||
echo 1>&2
|
read -r -n 1 -p "Press any key to show: $f: "
|
||||||
cat adrian.grep.try
|
echo 1>&2
|
||||||
echo 1>&2
|
cat "$f"
|
||||||
|
echo 1>&2
|
||||||
read -r -n 1 -p "Press any key to run: ./adrian adrian.grep.try < README.md: "
|
read -r -n 1 -p "Press any key to run: ./adrian $f < README.md: "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
./adrian adrian.grep.try < README.md
|
./adrian "$f" < README.md
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
done
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: ./adhead try.sh: "
|
read -r -n 1 -p "Press any key to run: ./adhead try.sh: "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
@@ -37,7 +38,8 @@ echo 1>&2
|
|||||||
echo 1>&2
|
echo 1>&2
|
||||||
|
|
||||||
rm -f wc.adwc.txt adwc.adwc.txt
|
rm -f wc.adwc.txt adwc.adwc.txt
|
||||||
echo "$ wc adwc.c | sed -e 's/^[[:space:]]//g' | tr -s '[:space:]' | cut -d' ' -f1-3 | tee wc.adwc.txt" 1>&2
|
echo "$ wc adwc.c | sed -e 's/^[[:space:]]//g' | tr -s '[:space:]' | \\" 1>&2
|
||||||
|
echo " cut -d' ' -f1-3 | tee wc.adwc.txt" 1>&2
|
||||||
read -r -n 1 -p "Press any key to continue: "
|
read -r -n 1 -p "Press any key to continue: "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
wc adwc.c | sed -e 's/^[[:space:]]//g' | tr -s '[:space:]' | cut -d' ' -f1-3 | tee wc.adwc.txt
|
wc adwc.c | sed -e 's/^[[:space:]]//g' | tr -s '[:space:]' | cut -d' ' -f1-3 | tee wc.adwc.txt
|
||||||
@@ -56,6 +58,6 @@ echo 1>&2
|
|||||||
rm -f wc.adwc.txt adwc.adwc.txt
|
rm -f wc.adwc.txt adwc.adwc.txt
|
||||||
|
|
||||||
echo "$ ./adsleep 10" 1>&2
|
echo "$ ./adsleep 10" 1>&2
|
||||||
read -r -n 1 -p "Press any key to take a 10 second nap: "
|
read -r -n 1 -p "Press any key to make your computer take a 10 second nap (./adsleep 10): "
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
./adsleep 10
|
./adsleep 10
|
||||||
Reference in new issue
Block a user