Afficher un message
Vieux 14/03/2008, 23h20   #7
Stephane CHAZELAS
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
 
Page generated in 0,04375 seconds with 9 queries