[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

for i in *

I still don't understand the proper syntax for this: I want to process
multiple files, e.g. symlinking a bunch or converting graphics.

for i in *;do 'ln -s $i /home/newdir/$i';done

won't work. 

Could someone please explain the rules for doing stuff like this, e.g. when
to use quotes and what quotes, when to write files to a new file and
renaming them back. I would appreciate this a lot as I need to do a lot of
this kind of stuff. Thanks --Hans

Reply to: