Excerpts from mail: (03-Jun-98) stripping off newlines? by Paul Evad
Any idea why:
echo "File size shown in K (kilobytes)\n"; \
echo `ls -sRk1 /home/www/foobar/www/downloads`; \
would be stripping off the newlines in the resulting list?
That's just the way backticks work in most shells. (By the way, I don't know
about your `echo', but my `echo' will not interpret "\n" the way I think you
want it to. If you want a blank line, add "echo; " after the first `echo'.
Alternatively, you could use the `printf' command-line executable if your OS
has one.)
if you do ls -sRk1 /home/www/foobar/www/downloads on a shell command
line, you get one big long list.
Ah, but that's not what you get if you execute "echo `ls -sRk1
/home/www/foobar/www/downloads`" on the command line! Basically, you're
getting what you've asked for.
Just change "echo `ls -sRk1 /home/www/foobar/www/downloads`; \" to simply
"ls -sRk1 /home/www/foobar/www/downloads; \" to get what you want.
(Please excuse my off-topic post. This really has nothing to do with procmail.)
Later,
Ed