#!/bin/sh i=0 while [ $i -lt 10 ]; do i=$((i + 1 )) if [ $(( $i % 2 )) -eq 0 ]; then continue fi echo $i done
if [ -e /etc/passwd ]; then echo "/etc/passwd exists!" fi
if [ "$1" = "-f" ]; then echo "-f specified on command line as first option" fi
die () { echo $@ >&2; exit 1;} die "Unknown error"
x=100 while [ $x -gt 0 ] do command x=$(($x-1)) done