Answers for "read input from multiple lines in BASH"

0

read input from multiple lines in BASH

user@host:~$ read -d '' x <<EOF
> mic
> check
> one
> two
> EOF
Posted by: Guest on April-20-2021
0

read input from multiple lines in BASH

$ myVar=$(</dev/stdin)
hello
this is test
$ echo $myVar
hello this is test
$ echo "$myVar"
hello
this is test
Posted by: Guest on April-20-2021

Code answers related to "read input from multiple lines in BASH"

Browse Popular Code Answers by Language