I have to execute a script in just on row.
Here is my script (simplified version) tt.sh
:
result=`sqlplus -s / as sysdba <<EOSQL
set heading off feed off termout off pages 0 lines 150 serveroutput on
select 1 from dual;
EOSQL`
if [ $result = '1' ] ; then echo 'OK'; else echo 'KO'; fi;
When i run the the script, it works:
./tt.sh
OK
Is there a possibility to put the 5 lines of tt.sh in one line?
Thank in advance