[Gllug] OT: Very long pathnames

Fred L Youhanaie fly at anydata.co.uk
Mon May 23 16:24:41 UTC 2005



Alain Williams wrote:
> On Mon, May 23, 2005 at 03:52:15PM +0100, Peter Ball wrote:
>>Does anyone know of any tools Windows or Linux tools which will audit a 
>>Windows/Samba share and list all pathnames longer than say 200 
>>characters ?
> 
> 
> ls -R | awk '/:$/ { dir = substr($1, 1, length($1) - 1) "/"; next}
>              /^$/ { next }
>                   { if(length > 200) print dir $0 }'

Of course if Peter is only interested in the whole _pathname_, then this 
should suffice:

cd sambashare
find . | awk 'length>200'

Cheers
f.

p.s. sorry alain, I had to reply ;-)
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list