Re: find (path/filename) > 108 characters
2008-03-14, 18:17(+01), Cyrus Kriticos:
[...]
> Charles Russell wrote:
>> Is there a simple way to print out all the files in a directory tree
>> that have pathname + filename > 108 characters?
>
> [GNU grep]
>
> find /path_to_tree -type f | grep -E "^.{109}"
Note that this is standard POSIX and Unix, not only GNU.
See also
find /path_to_tree -type f | awk 'length > 108'
All those solutions assume that file names don't contain newline
characters.
--
Stéphane
|