This article introduces how to receive stdin (standard input) in Bash, the command-line language of Linux.
Do it as follows:
myVar=$(</dev/stdin)
echo $(</dev/stdin) This article introduces how to receive stdin (standard input) in Bash, the command-line language of Linux.
This article introduces how to receive stdin (standard input) in Bash, the command-line language of Linux.
Do it as follows:
myVar=$(</dev/stdin)
echo $(</dev/stdin)