#!/bin/bash ## a modified hello world that uses arrays and ## conditional if statements echo "hello world" x=(bob sue fred mary) for name in ${x[@]}; do if [ "$name" == "bob" ]; then echo "Special case here" fi echo "Hello $name" done echo "script complete"