#!/bin/bash # The continue command is used to just break one pattern # of the loop (i.e. jump down to done and continue with # the rest of the loop # This script uses a continue statement to "pass-by" a # particular number (in this case, the number 2) if [ $# = 0 ] then echo "Usage: continue_1 1 2 3 4 5 ..." 1>&2 exit 1 fi for num do # Continue statement "skips" display of 2 but continues # until for loop is completed if [ $num = 2 ] then continue fi echo $num done