#!/bin/bash

# simple example of a shell that either uses a command-line argument
#     or requests input from the user
# by: Sharon Tuttle
# last modified: 10-10-12

# set variable input on way or another...

if [ $# -eq 0 ]
then
    echo -n "Enter something: "
    read input
else
    input=$1
fi

echo "\$input: $input"