r/linux_programming • • Sep 16 '20

df print 1 column

how do i cat the column of used data from df?

2 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/gansm Sep 17 '20 edited Sep 17 '20

Or you can do everything with the bash:

df | while read -r _ _ V _ _ _; do echo "$V"; done
Used
0
669128
119952760
1379500
4
0
91109
922574976
16
184
4
2715824