C2110 UNIX and programming Lesson 9 -1C2110 UNIX and programming Petr Kulhanek kulhanek@chemi.muni.cz National Center for Biomolecular Research, Faculty of Science Masaryk University, Kamenice 5, CZ-62500 Brno Lesson 9 PS / 2020 Distance form of teaching: Rev2 C2110 UNIX and programming Lesson 9 -2Summary L8 ➢ Bash C2110 UNIX and programming Lesson 9 -3for Loo[ for((I=1;I <= 10;I++)); do echo $I done Condition: Following comparison operators can be used: ! = does not equal == equals < smaller <= less than or equal to > larger > = greater than or equal to Initialization follows free rules because the expression is specified in the (()) block. Variable I has the role of counter. Change: You can use any expression that can be interpreted in the (( )) block, e.g.: ++ increases value of variable by one - decreases value of variable by one and more ... Can only be applied to integers in (( )). It is recommended to change the counter only in the reserved place within for loop notation. C2110 UNIX and programming Lesson 9 -4Static Script Analysis C2110 UNIX and programming Lesson 9 -5Script Debugging C2110 UNIX and programming Lesson 9 -6New Substance ➢ Gnuplot ➢ Bash C2110 UNIX and programming Lesson 9 -7- Content ➢ Gnuplot • presentation of scientific and technical data • interactive and non-interactive mode • plot, splot • terminals ➢ Bash • for … in loop • loops and redirection