well, i'm not exactly sure how to put them into an array, but the following will print all the files in the directory.
[code]
#! /bin/bash
for $file in *
do
echo "$file"
end
[\code]
so you could easily replace the echo statement to do something to each element, or add each element to an array.
|