mirror of
https://github.com/cheat/cheat.git
synced 2024-11-22 14:01:36 +01:00
Cleaned up the loop
Otherwise, the loop just prints the words 'file' and 'found' on separate lines.
This commit is contained in:
parent
14821d424c
commit
6042b8814a
@ -1,7 +1,7 @@
|
||||
# To implement a for loop:
|
||||
for file in `ls .`;
|
||||
do echo 'file';
|
||||
echo 'found';
|
||||
do
|
||||
echo $file found;
|
||||
done
|
||||
|
||||
# To implement a case command:
|
||||
|
Loading…
Reference in New Issue
Block a user