Tomas Larsson wrote:
Thanks all, however for some reason 'ls $DIR' didn't work.
$(ls $DIR) did the job.
The reason that 'ls $DIR' did not work is that it was not what was shown
in the example, what was shown and does work is:
`ls $DIR`
which uses back ticks, a subtle difference. :-)
--
Music: http://www.myspace.com/acidredux
Links: http://del.icio.us/furlan
Home: http://flprim.us/index.html
"Play--more than piety, more than charity or vigilance--is what allows
human beings to transcend evil."
-- Tom Robbins (Jitterbug Perfume)