#!/bin/bash
while [ $# -gt 0 ]; do
case $1 in
–option1*) OP_1=${1#*=} ; shift ;;
–option2*) CELL=${1#*=} ; shift ;;
–h | -h | –? | -? | –help) usage; exit 1 ;;
*) break ; ;;
esac
doneecho “option_1 is equal to${OP_1}, $*!!”
This goes trough the command line and “eats” all known params.
Eg: test.sh –option1=21 cool


