I'd like to find lines in my code which exceed a certain length. My code is in multiple files. What's a good way to do this?I'd like to know the files and line numbers; content would be preferred, but not necessary. The purpose of the exercise is to then figure out how to break the lines (probably manually).
How can I identify lines in files over a certain length
text processing
With grep:grep -En '.{12}' fileFor lines at least 12 characters long.With several files:find . -type f -exec grep -En '.{12}' {} +Some grep implementations like GNU grep, can do the file-finding themselves.grep -rEn '.{12}' .But beware of symlinks and other non-regular files.