
11 Nov
2011
11 Nov
'11
6:48 a.m.
On 11/11/2011, at 17:38, Andrew Spiers <7andrew@gmail.com> wrote:
I couldn't google for this. How do I preserve line breaks when assigning the result of something to a variable?
aspiers@cape:~/tmp/horror$ ls -1 file1 file2 file3 aspiers@cape:~/tmp/horror$ echo -e $(ls -1) file1 file2 file3
can do: e=$(ls) printf "%b" "$e"