#!/bin/bash va=`cut -d"/" -f2 out` #cat out > va echo $va cd $va The issue is that it doesnot cd to the directory after running the script means cd sab. Note : The value of the statement echo $va returns sab Any clue Thanks Again Kaushal
#!/bin/bash va=`cut -d"/" -f2 out` #cat out > va echo $va cd $va The issue is that it doesnot cd to the directory after running the script means cd sab. Note : The value of the statement echo $va returns sab Any clue Thanks Again Kaushal