Home > Uncategorized > Irritating “<< Unmatched" error in Unix shell

Irritating “<< Unmatched" error in Unix shell

"<< Unmatched" error was irritating me but finally I found it.

# Some space after first column (This was giving error)

rman target / <<EOF

catalog archivelog ‘/arclocation/1_${archno}_777.arc’;

exit;

EOF

I changed it to following and it works like a charm.

Please note that there is no space after first column of the line.

# No space after first column. (Works like a charm)

rman target / <<EOF

catalog archivelog ‘/arclocation/1_${archno}_777.arc’;

exit;

EOF

Categories: Uncategorized
  1. September 25, 2013 at 10:16 pm

    The two scripts look identical to me. I don’t know what you’re talking about!

  1. No trackbacks yet.

Leave a comment