For ToDo #1 you could use this piece of code ------------------------------------------- until [ -z "$1" ] # Until there are parameters left do # Something.......Your Code for ex. shift done -------------------------------------------