Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'slight refinement...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
slight refinement...
Authored by: gatorparrots on Jan 14, '04 08:19:20PM
The grep process is unnecessary in returning the status, as awk has its own pattern matching. Also, to get better output, you should print both the third and fourth fields, to handle "Not Supported" or other multi-word output:
diskutil info disk0 | awk '/SMART/ {print $3,$4}'


[ Reply to This | # ]