mirror of
https://github.com/eddyem/lectures.git
synced 2026-03-20 00:31:07 +03:00
add 3 lectures for SFedU
This commit is contained in:
19
Komp_obr_SFedU/Materials4Pract/01/for
Executable file
19
Komp_obr_SFedU/Materials4Pract/01/for
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo -e "\t1."
|
||||
|
||||
for (( a = 1; a < 11; ++a )); do
|
||||
echo "a=$a"
|
||||
done
|
||||
|
||||
echo -e "\n\t2."
|
||||
|
||||
for a in $(seq 1 10); do
|
||||
echo "a=$a"
|
||||
done
|
||||
|
||||
echo -e "\n\t3."
|
||||
|
||||
for a in one "two args" three; do
|
||||
echo "a=$a"
|
||||
done
|
||||
Reference in New Issue
Block a user