[mdlug] How to find file name length?
Michael Corral
micorral at comcast.net
Wed Sep 26 15:34:19 EDT 2007
2007-09-26, Monsieur Aaron Kulkis a ecrit:
> Adam Tauno Williams wrote:
>>>> So the question is: Is there a way to find all files with a name length of
>>>> greater than 103 character?
>>
>> find tmp -name "???????????????*" will find all the files with a file
>> name length of 15 or more in the directory named "tmp". Crude, but it
>> works.
>>
> Actually, it is a perfectly elegant solution.
Not when it has to check for 104 or more characters it isn't. :)
In some places a "solution" like that will get you shot, and
rightly so. ;)
Michael
More information about the mdlug
mailing list