Hi everyone,

I have a file named access.txt with the following content.


I want to navigate my way in to the "products location" directory using a script.
So,I used the below command to extract the value:

path=`cat access.txt | grep productsLocation | sed 's_=_& _' | awk '{print $2}'`
cd $path

But while executing the cd command I'm getting the below error:

: No such file or directory

When I try to echo the contents of $path,below is the content

#echo $path

I believe the problem is with awk not treating the output as a directory. Please help me on this.Thanks in advance.