Looping and Skipping

  • + 0 comments
    #!/bin/bash
    for i in {1..100}; do
    if [ `expr $i % 2` != 0 ];
    then echo $i
    fi;
    done