[lug] find command or similar

Hugh Brown hugh at math.byu.edu
Tue May 13 11:24:43 MDT 2003


On Tue, 2003-05-13 at 12:20, Stephen G. (E-mail) wrote:
> Using current KRUD
> 
> Will someone please explain how I can find all files on a system with
> a name containing more than 200 characters?
> Or
> More then 200 characters but less than say 240?
> 

according to the man pages for find and regex you ought to be able to do
something like:


find / -regex ".*/.{200,240}" -print

but I can't get it to work right at all.

Here's a way that seems to work for my limited test case:

find / -type f | egrep ".*/.{200,240}$"

YMMV,

Hugh




> Thanks,
> 
> SGS
> 
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug




More information about the LUG mailing list