$ 0 0 oneliner extension of duffbeer703's solution: #! /bin/bash [ -z "$1" ] || some_command_that_needs_$1_parameter