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: Philip Aker <email@hidden>
- Date: Sat, 01 Mar 2008 11:35:30 -0800
On 08-03-01, at 11:23, Steven D. Majewski wrote:
I'm not sure that I understand what folks in this thread mean as the
'list management problem', but yes, a simple shell one liner is:
du FOLDER | awk -e '{ if ( $0 > 999 ) { print $2; }}'
I think one of the problems would be that 'du' doesn't discriminate
package folders from regular folders (as Chris Nebel mentioned very
recently). It may be possible to get these attributes at the shell
script level, but by the time one had done all the looping necessary,
I don't think there'd be any significant advantage speed wise to what
one can attain with a 'whose' clause and 'entire contents'. And
certainly not for succinctness of expression.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
_______________________________________________
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