Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux for loop 1 to 100 odd

for i in {1..99}
do
        rem=$(($i % 2))
        if [ "$rem" -ne "0" ]; then
                echo $i
        fi
done
 
PREVIOUS NEXT
Tagged: #linux #loop #odd
ADD COMMENT
Topic
Name
7+2 =