r/linux_programming • u/eamonwt • Sep 16 '20
df print 1 column
how do i cat the column of used data from df?
2
Upvotes
r/linux_programming • u/eamonwt • Sep 16 '20
how do i cat the column of used data from df?
View all comments
Show parent comment
2
u/gansm Sep 16 '20
Because the number of spaces can be variable here, I would use awk for this job.
df | awk '{print $3}'