You're replying to a comment by Ed.

April 09, 2015, 06:35

How to get the 'right' header printed out when using df | awk as below?

df -k /db/test01 | awk '{printf "%-35s %-10s %-10s %-10s %10s %-s\n",$1,$2/1024/1024,$3/1024/1024,$4/1024/1024,$5,$6}'

At the moment, using the command below, the heading for field 2,3,4 are printed as zeroes. I cannot run df -k as I am on a very old Solaris server :(-

Any advice much appreciated. Thanks in advance.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "apple_92": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.