You want the list of files in **one** variable? That does not sound like the way to go...
The standard way to do something like this is with a loop:
Code:
for filename in *; do
commands
more commands
done
In this case, it finds every entry in the current directory and assigns it to the variable "filename",
one at a time. Each time thru the loop, the commands operate on the current value of "filename"
Try it first like this:
Code:
for filename in *; do
echo $filename
done
Then add some other commands.....