Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

awk and df 1

Status
Not open for further replies.

loloman

Technical User
Oct 30, 2002
16
0
0
FR
I want to display on unix the command df with awk
#df
Filesystem Total kbytes kbytes %
/dev/rz2a 32023 16823 11998 58% /
/dev/rz2g 885222 229492 567208 29% /usr

#df |awk '{print $6 ";" $5}'
;%
Mounted;used
/;58%
/usr;29%

I don't want
;%
Mounted;used

What can i do ?
 
Hi,

df |awk 'NR>1 {print $6 ";" $5}'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top