Main.ShellScriptCommandArguments


The code below checks to see if at least one command argument has been provided by the calling shell or script to the current shell environment:

#!/bin/sh

if [ -z $1 ]
then
	echo "No Command arguments given"
else
	echo "Command argument given"
fi

See also