combining fields in awk

I am using:

ps -A -o command,%cpu

to get process and cpu usage figures. I want to use awk to split up the columns it returns. If I use:

awk '{print "Process: "$1"\nCPU Usage: "$NF"\n"}'

the $NF will get me the value in the last column, but if there is more than one word in the process name (such as sshd jason), it only displays the first word in the column.

Does anyone know of a way to combine all the fields except the last one into one field, or some other way around this problem? I searched the forum for similar posts but didn't find any.

ps -A -o command,%cpu | awk '{a=$NF;gsub($NF, "", $0);print "Process:\t"$0"\nCPU Usage:\t"a"\n"}'

You should finish the job.

Works great! Thanks a lot.