Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Just to ask the obvious question: Where's the character limit of shell variables?
    – nixda
    Commented Jan 9, 2013 at 22:59
  • As far as I'm aware, it's only limited by the amount of memory available. I've filled up variables well over 100MB into memory. text=$(cat file). Be careful to only use text though, because shell variables aren't binary clean mywiki.wooledge.org/BashFAQ/058
    – Rucent88
    Commented Jan 14, 2013 at 1:48