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

Re: for i in *



Hans <hansfong@zonnet.nl> writes:

> 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

Other people have explained about the quotes, but for this specific
case you might like to know that 

ln -s * /home/newdir

works to do the same thing.

-- 
Alan Shutko <ats@acm.org> - In a variety of flavors!
An economist is a man who would marry Farrah Fawcett-Majors for her money.



Reply to: