I'm using rhel7 and trying to print my output from shadow for example to be like this :
test1 !!
test2 !!
test3 *
I am running this command:
i=`cat /home/mydir/shadow1 |awk -F ':' '{print $1,$2}' `
When I do echo $i, it will print the output in 1 line:
test !! test2 !! test3 *
Can anyone advice how should I modify my '{print $1,$2}' so that it will print a new line?