Lisez l'entrée de plusieurs lignes en 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