On Sun, Oct 30, 2022 at 4:41 PM Alex fxmbsw7 Ratchev <fxmb...@gmail.com> wrote:
> > > i coded a files tree to bash code via gawk reading and printing bash code > i did noeol no newline at end > logically , cause , who wants var='from file\n' > > > > Because command substitution strips trailing newlines? $ echo -e 'foo\n\n\n' foo $ s=$(echo -e 'foo\n\n\n') $ declare -p s declare -- s="foo" No gyrations needed. -- Visit serverfault.com to get your system administration questions answered.