Yuri <yuri at rawbw.com> writes: > When script has the line like this: > VAR=$(ls) > all newlines returned by the process (ls) are removed. I don't think so. If you process the variable's contents one line at a time, you will get a separate line for each file.