I'm trying to do a script that counts all the files in the system that have a name with a odd number of characters, only the name not the extension. somebody can help me? I've done this but it doesn't work
find /usr/lib -type f | cut -f 1 -d '.' | rev | cut -f 4 -d '/' | rev | wc -m
with this I count all the characters of all file, but how do I count the number of character of one file ?