$@ is a built in variable that holds all the command line arguments passed to your script. $1 is just the first command line argument. Here's a useless script that illustrates use of $@
# Usage: bash thisfile anyfile [anyfile...]
for fname in $@; do
echo "Will cat $fname"
cat $fname
echo "============================"
echo ""
done
griswolf
Veteran Poster
1,165 posts since Apr 2010
Reputation Points: 344
Solved Threads: 256