LN -s question
by iammike2 from LinuxQuestions.org on (#4TGBB)
Need your help again.
I am using this snippet to make symlinks for a lot of files
Code:for file in $(ls <source path with spaces>/. |grep jpg); do ln -s <source path with spaces>/$file <destination path with spaces>/$file ; done
It works BUT, it doesn't handle files with special characters very well.
I tried with ' and " but no luck.
Thx in advance for any pointers.


I am using this snippet to make symlinks for a lot of files
Code:for file in $(ls <source path with spaces>/. |grep jpg); do ln -s <source path with spaces>/$file <destination path with spaces>/$file ; done
It works BUT, it doesn't handle files with special characters very well.
I tried with ' and " but no luck.
Thx in advance for any pointers.