Hi all,
i am trying to print columns 1 of df command with awk.
i used
Code:
df -h| awk '{ print $1 }'
but actual output from above command is including second column (size) of df command instead of just column1 1 (filesystem name). What is wrong in above command. Thanks in advance!
output:
Filesystem
/dev/mapper/vg00-lvol00
2031440
/dev/mapper/vg00-lvol04
10157368
/dev/mapper/vg00-lvol02
10157368
/dev/mapper/vg00-lvol03
10157368
/dev/mapper/vg00-lvol05
2031440
/dev/mapper/vg00-lvol07
16568712
/dev/mapper/vg00-lvol06
1015704