I am trying to create a shell script that will take command line arguments and create one or more files based off of that. I know that each command line argument is stored in $0, $1, $2...and so on, so that is what this loop is based on.
for i in $(eval echo {1..$#})
do
echo "File I'm about to edit/create: "$i""
touch "$i"
done
However, $i is being taken literally as the number 1, 2..rather than the value in $1.