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

Steve Alesch sja at ih1ap.UUCP
Wed Sep 17 02:22:57 AEST 1986


In article <1271 at jade.BERKELEY.EDU>, mwm at eris.berkeley.edu (Mike Meyer) writes:
> In article <573 at ih1ap.UUCP> sja at ih1ap.UUCP (Steve Alesch) writes:
> >> 
> >> 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.
> 
> And for those of you who don't have xargs (I thought such creatures
> died after v6!), you can do:
> 
> 	ls -l `find / +nnn -print`
> 
> Which shell facility is, of course, why I thought xargs-like things
> died after v6...
> 
> 	<mike

Command substitution is fine except when the output of the command
substitution exceeds the shell environment limit.  This is xargs(1)
reason for living.  Have other UNIX(TM) flavors solved this problem
in some other fashion?  I find it hard to believe that they have
limitless environment sizes?
-- 

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



More information about the Comp.sources.bugs mailing list