On Wed, Jul 01, 2015 at 10:19:10PM +0300, Ilya Basin wrote: > Want to read whole stdin into variable. > Don't want to spawn new processes (cat).
If the data stream does not contain any NUL bytes, you can use: IFS= read -r -d '' variable
On Wed, Jul 01, 2015 at 10:19:10PM +0300, Ilya Basin wrote: > Want to read whole stdin into variable. > Don't want to spawn new processes (cat).
If the data stream does not contain any NUL bytes, you can use: IFS= read -r -d '' variable