Shell Interviews

From Network Security Wiki
Jump to navigation Jump to search
  • Display Even Numbers
for number in {1..99..2}
do
   echo $number
done
1 is the low end. 
99 is the high end. 
2 is the step after each iteration.