I have this piece of sh code here which takes one argument at a time:
#!/bin/sh
clear
if [ $# -eq 0 ]
then
echo -n "There are arguments...Please enter again with the arguments"
echo
exit
elif [ ! -f "$*" ]
then
echo -n "The image file '$*' doesn't exist!"
echo
exit
else
display -size 40x50 $*
fi
How would i be able to make it print out up to 5 arguments therefore show 5 thumbnails at the same time?
Please help Thanks