You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
koalaman edited this page Jul 8, 2017
·
1 revision
Nothing allowed after end token. To continue a command, put it on the line with the <<.
Problematic code:
cat <<EOFHelloEOF| nl
Correct code:
cat <<EOF | nlHelloEOF
Rationale:
You have a here document, and appear to have added text after the terminating token.
This is not allowed. If it was meant to continue the command, put it on the line with the <<.
If it helps, look at << "END" as if it was < file, and make sure the resulting command is valid. This is what the shell does. You can then append here document data after the command.