in reply to Re: Re: finding top 10 largest files
in thread finding top 10 largest files

Please excuse me, for being 95% off topic, but maybe a search should reveal the following link. For me Perl is mainly commandline work and I love less, which, find, etc and their combinations.
Thank You.

With the exception of which, which has a better Perl equivalent called pwhich, you should try http://unxutils.sourceforge.net/ as standalone alternative for cygwin.
Quote from description:

Here are some ports of common GNU utilities to native Win32. In this context, native means the executables do only depend on the Microsoft C-runtime (msvcrt.dll) and not an emulation layer like that provided by Cygwin tools.

But nevertheless you run into problems with find and echo as they have DOS equivalents commands with the same name, but limited functionality. If you have Novell, you will hit e.g. ls, depending on your path.

And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)

Replies are listed 'Best First'.
Re: Re: Unix Utilities for Win32 (OT)
by Anonymous Monk on Feb 04, 2004 at 10:14 UTC
    You might have luck with this pipeline
    du -a | sort -nr | head -10
    which would give the top 10 files recursively found below the directory this command is issued from. The cross-platform GNU utilities would list the top-ten files.