mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-23 06:02:12 +01:00
17 lines
201 B
Text
17 lines
201 B
Text
# basic loop
|
|
for i in 1 2 3 4 5 6 7 8 9 10
|
|
do
|
|
echo $i
|
|
done
|
|
|
|
# loop ls command results
|
|
for var in `ls -alF`
|
|
do
|
|
echo $var
|
|
done
|
|
|
|
# loop specified number of times
|
|
for i in `seq 1 10`
|
|
do
|
|
echo $i
|
|
done
|