
11 Nov
2011
11 Nov
'11
6:38 a.m.
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 There must be something better than this: aspiers@cape:~/tmp/horror$ echo -e $(ls -1| awk '{print $0,"\\n"}') file1 file2 file3