Can somebody supply me with a simple way to get a value between
two double quotes?
Example:
input = ADR base is "/u01/app/oracle"
output = /u01/app/oracle
Thanks to all who answer
Can somebody supply me with a simple way to get a value between
two double quotes?
Example:
input = ADR base is "/u01/app/oracle"
output = /u01/app/oracle
Thanks to all who answer
awk -F\" '{print $2}' inputfile
$
$
$ cat data.txt
ADR base is "/u01/app/oracle"
$
$
$ cut -d'"' -f2 data.txt
/u01/app/oracle
$
$
tyler_durden
% s='ADR base is "/u01/app/oracle"'
% expr "$s" : '.*"\([^"]*\)"'
/u01/app/oracle
inp='ADR base is "/u01/app/oracle"'
eval set -- $inp
eval echo \$$#