|
Posted by David Combs on May 19, 2008, 6:01 pm
Please log in for more thread options >On 6/12/2006 2:34 AM, pui ming Wong wrote:
>> My objective is to go down the current directory
>> and have the system tells me which files have their names
>> longer than say 26 characters
>>
>> i think mixing the unix find command
>> with some other commands might do it.
>> But a perl script might do it more tidily and faster ?
>
>find . -name "??????????????????????????*"
>
>That's 26 question marks, or if you prefer to specify a value:
>
>find . -name "$(printf "%26s*"|tr ' ' '?')"
>
>Regards,
>
> Ed.
>
If 26 is what you *really* want to do, isn't there nowadays
a \ suffix that will do it? (At least that's what
works in emacs.)
David
|