I forgot the input file for awk commands :
Code:
# Get line /opt="/opt/sourcecode"
res=`grep "$a" sachi.txt
# Get "/opt/sourcecode"
res=`awk -F'=' '$0 ~ Pattern { print $2 }' Pattern="$a" sachi.txt`
# Get /opt/sourcecode
res=`awk -F'"' '$0 ~ Pattern { print $2 }' Pattern="$a" sachi.txt`
These are 3 independant commands, you chooses one depending on the result you need (third i think).