#!/bin/bash # useage : test [-p p] if ["$1" = "-p"]; then shift; shift fi echo "$1"