$ myVar=$(</dev/stdin) hello this is test $ echo $myVar hello this is test $ echo "$myVar" hello this is test