How to quote a SQL*Plus identifier in a bash script?
[root@o73 ~]# SGA_TARGET=$(su - oracle -c &quot;export ORACLE_SID=RYMIN19; export ORAENV_ASK=NO; . oraenv &gt;/dev/null; echo \&quot;set pages 0
select value from v\\\$parameter where name = 'sga_target';\&quot; | sqlplus -s / as sysdba&quot;)
[root@o73 ~]# echo $SGA_TARGET
2147483648
[root@o73 ~]#