Just a sample of what you can do...
<code>
#!/usr/bin/ksh
#Test params
if [ $# -eq 0 ];
then
echo "No params!"
echo "Usage : $0 params..."
exit 1
else #Count the params
echo "You have $# arguments"
echo "The params are $@"
for i in "$@"
do
if [ -f $i ]; \(In case of looking if its a file... \)
then
echo " file $i exists"
...
else
echo "fie $i missing"
exit 1
fi
done