Lesen Sie die Eingabe aus mehreren Zeilen in Bash
user@host:~$ read -d '' x <<EOF
> mic
> check
> one
> two
> EOF
Gifted Gorilla
user@host:~$ read -d '' x <<EOF
> mic
> check
> one
> two
> EOF
$ myVar=$(</dev/stdin)
hello
this is test
$ echo $myVar
hello this is test
$ echo "$myVar"
hello
this is test