Hello Everyone,
I am new here and just started shell scripting.
I thought I would start with creating a shell script as a solution to one of my problems.
I need some help with variables and path names (especially spaces in pathnames) here.
I am trying to use my firefox bookmarks on linux with that on windows synchronously but I am getting errors with the path variable for the windows profile folder since it has spaces in its pathname.
For Example:
$ cd /mnt/hda1/Documents\ and\ Settings/
will work, where
$ HDA1="/mnt/hda1/Documents\ and\ Settings/"
$ cd $HDA1
will give such error:
bash: cd: /mnt/hda1/Documents\: No such file or directory
With/out quotes, backslashes, all same.. I understand that shell does not like spaces. What should I write instead since I cannot change the pathname? Any suggestions please?
Thank in advance