mirror of
https://github.com/cheat/cheat.git
synced 2025-07-03 04:11:59 +02:00
Cleaned up the loop
Otherwise, the loop just prints the words 'file' and 'found' on separate lines.
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
# To implement a for loop:
|
# To implement a for loop:
|
||||||
for file in `ls .`;
|
for file in `ls .`;
|
||||||
do echo 'file';
|
do
|
||||||
echo 'found';
|
echo $file found;
|
||||||
done
|
done
|
||||||
|
|
||||||
# To implement a case command:
|
# To implement a case command:
|
||||||
|
Reference in New Issue
Block a user