When script has the line like this: VAR=$(ls) all newlines returned by the process (ls) are removed. I know shell variables can hold newlines in them when assigned inside the script. Just in this case, when the process output is assigned, they are stripped. Any way to keep newlines? Yuri