1
vote
1answer
175 views

How to feed the variable with end of lines to standard input of other application in bash?

Is there a (simple) way to feed variable with end of lines to other program in BASH? Consider example: flist=$(ls -l) echo $flist echo will replace all end of lines with spaces, so my output will ...