[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 633
  • Last Modified:

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!
0
tickett
Asked:
tickett
  • 2
1 Solution
 
tickettAuthor 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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now