Hey , another question is below:
Administrator@fe038390aa60482 ~/Frank/20130509
$ c=`ls -ls`
Administrator@fe038390aa60482 ~/Frank/20130509
$ echo $c
Total 4 1 -rwxr--r-- 1 Administrator None 482 May 9 11:07 do_increment 1 -rwxr
--r-- 1 Administrator None 272 May 9 11:32 do_square 1 -rwxr-xr-x 1 Administrator None 273 May 9 10:40 do_square.bak 1 -rwxr--r-- 1 Administrator None 136 May 9 11:38 myfunction
why the newlines are removed just because I assign the command "ls -ls" to a variable c and echo the value of c ?
what if I want to display them normally as follows by using command substitution like above:
Administrator@fe038390aa60482 ~/Frank/20130509
$ ls -ls
Total 4
1 -rwxr--r-- 1 Administrator None 482 May 9 11:07 do_increment
1 -rwxr--r-- 1 Administrator None 272 May 9 11:32 do_square
1 -rwxr-xr-x 1 Administrator None 273 May 9 10:40 do_square.bak
1 -rwxr--r-- 1 Administrator None 136 May 9 11:38 myfunction