💾 Archived View for perso.pw › blog › articles › 19.gmi captured on 2021-12-17 at 13:26:06. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

➡️ Next capture (2023-01-29)

🚧 View Differences

-=-=-=-=-=-=-

Redirect stdin into a variable in shell

NIL=> Comment on Mastodon

If 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