$ cat hello.txt
shreenivasa hi hello this is test mail
shreenivasa how are you man
if i run in terminal
$ cat hello.txt | grep shreenivasa | cut -d ' ' -f 2-
its giving following output
hi hello this is test mail
how are you man
but if i write it as script in hello.sh
like below
#!/bin/bash
hi=`cat hello.txt | grep shreenivasa | cut -d ' ' -f 2-`
echo $hi
output for ./hello.sh
is
hi hello this is test mail how are you man.
I want to print "how are you man" in next line like
hi hello this is test mail
how are you man
tried $hi\n
didn't work