bash script for getting number of actual params passed
this little script gets the number of passed parameters ($#), fetches and prints them out to stdout. Works inside bash shell (/usr/bin/bash)
i=$#
echo $i actual params:
while let i
do
eval "echo \${$i}"
i=$[i-1]
done

0 Comments:
Kommentar veröffentlichen
<< Home