Redirect stdin into a variable in shell

NILIf you want to write a script reading stdin and put it into a

variable, there is an very easy way to procede :

#!/bin/sh

var=`cat`

echo $var

That's all

Proxy Information
Original URL
gemini://perso.pw/blog//articles/19.gmi
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
132.815413 milliseconds
Gemini-to-HTML Time
0.251195 milliseconds

This content has been proxied by September (ba2dc).