#!/bin/bash num=0 i=0 while [ $num -lt 500 ] do let num=7*i if [ $num -gt 500 ]; then break fi echo "$num" ((i++)) done exit 0