Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Limitation on length of here documents

Michael Klapp
Occasional Visitor

Limitation on length of here documents

Hello,
I have encountered a situation which seems to suggest there may be a limit to the size of here documents. Can anyone tell me what that limit is?
3 REPLIES
Bill Hassell
Honored Contributor

Re: Limitation on length of here documents

I don't know of a practical limit other than the ability of the shell to add more RAM while runs the script. I've had a 200 line here document (part of an email messge generator) that had no problems.


Bill Hassell, sysadmin
Michael Klapp
Occasional Visitor

Re: Limitation on length of here documents

Have you noticed a limit to the length of here document names? I refer to the identifier that follows the <<- or <<.
Michael Klapp
Occasional Visitor

Re: Limitation on length of here documents

FWIW - This is not a limitation on the length of anything. There was a trailing space on the closing tag. Once removed, all was well.
Thank you.