Lakshman Siddardha
2017-09-22 14:00:36 UTC
file:list
----------------------------------------
hello
world
----------------------------------------
when i type on terminal the following command:
$ cat $file
it displays as it is in file
----------------------------------------
hello
world
----------------------------------------
when i execute a shell script, it gives output in one line only
---------------------------------------
ex.sh
----------------------------------------
lista=$(cat list)
echo $lista
-------------------------------------
it gives output of
--------------------------
hello world
-------------------------
i want new line character between "hello" and "world"
----------------------------------------
hello
world
----------------------------------------
when i type on terminal the following command:
$ cat $file
it displays as it is in file
----------------------------------------
hello
world
----------------------------------------
when i execute a shell script, it gives output in one line only
---------------------------------------
ex.sh
----------------------------------------
lista=$(cat list)
echo $lista
-------------------------------------
it gives output of
--------------------------
hello world
-------------------------
i want new line character between "hello" and "world"