How can I get hard disk drive size in Automator?

How can I get hard disk drive size in Automator?

Very simple i'm sure (may need to use shell script?) but i'm new to mac scripting and googling this topic seems to be a returning too many irrelevant results!
LVL 11
tickettAsked:
Who is Participating?
 
tickettConnect With a Mentor Author Commented:
df -H | grep 'disk0s2' | awk '{print $2}'

Open in new window


Seems to do the trick. Will close shortly unless anyone has any better alternatives?

Thanks
0
 
tickettAuthor Commented:
Seems to do the trick!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.