FSLS - List big files in file system - (nf)

Steve Alesch sja at ih1ap.UUCP
Fri Sep 12 02:48:27 AEST 1986


In article <1273 at ihlpl.UUCP>, psfales at ihlpl.UUCP (Peter Fales) writes:
> > 
> > THIS PROGRAM FINDS LARGE FILES IN A GIVEN (BSD) FILE SYSTEM
> > ===========================================================
> > 
...
> I don't know about BSD, but I use the following command on my 3b2
> (System V) for clearing out big files on the disk:
> 
> find / -size +nnn -print
> 
> Where nnn is the cutoff point in blocks (512 byte blocks).  To better
> simulate the fsls command describe above, one could type
> 
> find / -size +nnn -exec ls -l {} \;

You can bury the machine this way!!!!  It's incredibly more efficient
using xargs(1) instead.

	find / -size +nnn -print | xargs ls -l

Sorry, but this is one of my pet peeves.
-- 

Steve Alesch	AT&T
(312)510-7881, ...!ihnp4!ih1ap!sja



More information about the Comp.sources.bugs mailing list