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

Re: for i in *



Hans wrote:
> 
> 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

  you got some responses already but here's some more info:

  to see how quotes work:

  export VAR='something'

  echo 'single quotes $VAR'
  echo "double quotes $VAR"
  echo `echo "this is backtick talking"`

  so in your example above the $i stays $i. Of course, you don't need
quotes there at all...

	erik



Reply to: