Appending text to a file

Hi,

Want to append the text to a new file,

echo "set `sqlplus -S abc/xyz123@localdb<<EOS" >> chk_test_append.sh
echo "EOS`" >> chk_test_append.sh

but getting the below error :

what wrong is written ?

With Regards

Hi , use single quotes .

1 Like

Hi,

can u please show in the example mentioned ?

With Regards

Try this:

echo "set \`sqlplus -S abc\/xyz123\@localdb\<\<EOS" >> chk_test_append.sh
echo "EOS\`" >> chk_test_append.sh

Of course:

echo 'set `sqlplus -S abc/xyz123@localdb<<EOS' >> chk_test_append.sh
echo 'EOS`' >> chk_test_append.sh