• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there a shell tool to find folders greater than a given size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Is there a shell tool to find folders greater than a given size? (From: "Steven D. Majewski" <email@hidden>)

  • Prev by Date: Re: Is there a shell tool to find folders greater than a given size?
  • Next by Date: Re: Illustrator CS3 how to import graphic styles?
  • Previous by thread: Re: Is there a shell tool to find folders greater than a given size?
  • Next by thread: Re: Is there a shell tool to find folders greater than a given size?
  • Index(es):
    • Date
    • Thread