-- Leo's gemini proxy

-- Connecting to perso.pw:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;

Redirect stdin into a variable in shell


Author: Solène

Date: 12 September 2016

Tags: shell unix


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

variable, there is an very easy way to procede :


var=`cat`

echo $var


That's all

-- Response ended

-- Page fetched on Fri Mar 29 13:45:43 2024