Link to home
Start Free TrialLog in
Avatar of TIMFOX123
TIMFOX123Flag for United States of America

asked on

in bash how do I parse out the available disk space from df ?

df -h /tmp | grep tmp

I just want to pull out the available disk space :)

i
Avatar of TIMFOX123
TIMFOX123
Flag of United States of America image

ASKER

swap                    29G   150M    29G     1%    /tmp

29 gigs availabe  
Avatar of woolmilkporc
df -h /tmp | grep tmp  |awk '{print $3}'
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you all

Great job

I look good at work however I owe it all to this team

thx again.