if using a plain old shell script, to access from the 10th
argument up, you must use shift. For instance, to print
the first 3 lines of every file passed, with a litte
header:
while test $# -gt 0; do
echo "==== $1 ===="
sed 3q "$1"
shift
done
also, the "for" construct with no list, runs through
all passed arguments. For example, the above could
have been written as:
for file
do
echo "==== $file ===="
sed 3q "$file"
done
cya
--
pkiller