I am extracting directory path from file which is stored in a variable.
while read inputline
do
script_name=`echo $inputline | cut -d' ' -f2`
cd $script_name
done < path_scripts.txt
where as path_scripts contains
input_process.bash ~/jobs/process/input/bin
The script output says no directory present
script1.sh: cd: ~/jobs/process/input/bin: No such file or directory
This is valid directory path but still i get the error. Could you please let me know why? how to fix this?