I have just begun writing scripts in bash and I am putting some of them on my web server (whihc is located on my virtual Debian 6.0.4 machine).
I have installed lighttpd on this machine.and when I execute for instance this command :
TOP=`top -n 1`; PS=`ps aux`; echo "that's top\n" $TOP; echo "ps\n" $PS;
Nothing is printed as
$TOP and for
$PS the text is written without separation for lines (all is written in a single line). How can I change this ?