which give me pretty much the output I want but the fields are not lined up. like its missing some kind of a tab or something? I suspect there is an option in the that comes after print.. but i dont see one that lines up he fields.
one last thing.. how would I save a cammand as a varible? I dont know how to explain better than that. I can write an example even tho I know this does not work. I know cause I tried several different ways.. no joy
I would like a varible to hold the information from this command
ls - gko / | egrep '^' | wc -l
in simple terms;
n = ls - gko / | egrep '^' | wc -l # this displays the number of directorys in root
echo $n