Re: Is there a shell tool to find folders greater than a given size?
Re: Is there a shell tool to find folders greater than a given size?
- Subject: Re: Is there a shell tool to find folders greater than a given size?
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 28 Feb 2008 23:32:22 -0500
The size of a folder (beyond the physical size of its directory list)
is not readily available in the shell. Typically you use the "du"
(disk usage) command to add up how much space a folder's contents take
up. You could pipe the result through awk to find the folders whose
size exceeds your threshold value...but you'd still have the list
management problem. I think I'd stick with the Finder on this one.
On 2/28/08, Gary (Lists) <email@hidden> wrote:
>
> Come forth, all ye Shellites, and tell your tales.
>
> I have been working on this (AS) script that reports in HTML about folders
> whose size is greater than some given size [*], in an hierarchical report.
>
> I don't speak Shelliac [!], so it only just occurred to me that there might
> be a command provided to do just that, but I have no idea how to know even
> know that. [+]
>
> Is there something shelly that reports back a list, with paths, of all
> folders exceeding some size limit, given some start folder?
>
> (I don't trust Spotlight one hoot, as it can't find items I can see with my
> own eyes. Besides, I want a live find.)
>
> Thanks.
> --
> Gary
>
> [*]
> The Finder does a fast and fine job of getting a list of big folders with
> the command:
>
> every folder of _someFolder whose physical size is greater than _someSize
>
> The real work is just managing the list of hierarchical results, since I
> only want to keep drilling down folders that exceed the limit, until there
> are not any more folders that do...then I've found the folder(s)
> contributing the weight.
>
> [!]
> Weren't they a species on Next Gen? I can't remember them very well. Blob
> creatures? Telepathic or something? Talking to Troy in her mind? Or were
> they the ultra-litigious species that Picard one-upped in that treaty trial?
>
> [+]
> Like knowing the definition of some concept, but having no idea if there's a
> word, what the word is, or how it could possibly be spelled.
> A very interesting human problem.
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden