You can increase others arguments like this:
```#!/bin/sh
until [ -z “$1” ]; do
if [ $1 = ‘-h’ ] || [ $1 = ‘–help’ ]; then
echo “put your text here”
exit 0
elif [ $1 = ‘-a’ ] || [ $1 = ‘–all’ ]; then
clear && ls -a –color
exit 0
else
echo “Unknow option \”$1\“”
exit 1
fi
shift
done
clear && ls –color```
$1 -> argument 1
$2 -> argument 2
…
This command takes one argument, a number. The positional parameters are shifted to the left by this number.
e.g.
yourcommand 1 2 3
shift
yourcommand 2 3
shift
yourcommand 3
shift
yourcommand