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

Click here to return to the 'Human Readable' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Human Readable
Authored by: Anonymous on Mar 01, '03 11:44:43AM

Umm... is there any reason why you're not using the human readable

du -sh

from the man page:

"-h, --human-readable
print sizes in human readable format (e.g., 1K 234M 2G)"

[ Reply to This | # ]
Human Readable
Authored by: extra88 on Mar 01, '03 01:33:35PM
I was thinking that when I was reading the thread (coincidentally I only learned of the -h switch yesterday when I was doing something on a Linux box). Unfortunately 'du' in Mac OS X doesn't support the -h switch and has no equivalent. The 'du' command in Linux distros has this "human readable" switch and a number of other switches for controlling the display but unfortunately OS X uses a more limited version of the command.

The OSXFAQ site includes Mac OS X man pages

[ Reply to This | # ]

Human Readable
Authored by: Anonymous on Mar 03, '03 12:25:11PM

sorry, you're right... i had forgotten that i had installed the fileutils package in Fink. that was what let me use -h with du.

[ Reply to This | # ]