Michael Chesterton wrote:
Here's my very minor contribution. If you change
for file in `ls`; do
to
for file in *; do
It should handle spaces
Oh, cool. I seem to recall having problems with the "for file in *"
construct, but I don't remember what they were, so I'll try it again
next time I want a for loop.
date=`ls -l --time-style=long-iso "$file" | awk '{ print "$6 $7" }'
I don't see a closing back tick.
You're right. I guess this is why I debug scripts before expecting them
to do anything important.
--
Pete
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html