No entry found for for. Run eg --list
to see all available entries.
Shell loop over parameters.
-
Perform a command with different arguments:
for argument in 1 2 3; do command $argument; done
-
Perform a command in every directory:
for d in *; do (cd $d; command); done
for i in 1 2 3 4 5 6 7 8 9 10 do echo $i done
for var in ls -alF
do
echo $var
done
for jpg_file in *.jpg do echo $jpg_file done
for i in seq 1 10
do
echo $i
done
for i in seq 1 10
; do echo $i; done
for ((i=1;i<=10;++i)) do echo $i done
for i in {1..10} do echo $i done