regex - Putty command to find files that are not named in Roman letters -
i need command through putty or find file in server isn't named in roman alphabet. result of command gives me path of file(s) match this.
my website's server uses ubuntu linux 12.04.1.
and want search in path (/var/www/) , sub-folders of it.
this should work find files , directories in /var/www
contain characters other upper/lowercase z:
find /var/www -iregex '^[.]*[/a-za-z]*$' -o -print
leave out -o
see is matching. leading [.]*
lets use find . -iregexp
... without needing change regexp; can drop /var/www
case.
you might need adjust [a-za-z]
if mean classical roman, didn't have j, u, or w.
i still liked erroneous first interpretation, thought looking files weren't named roman numbers, had solution along lines of:
find /var/www -iregex '^[.]*\(/\|/m*c?d?x?c*x?l?i*x?i?v?i*\)*$' -o -print
(same note on "[.]" on prior example)
if you're looking filenames containing non-ascii characters:
find /var/www -iregex '^[ -~]+$' -o -print
that 1 doesn't need "[.]" @ front because "." part of range anyway.
or non-iso-8859-1 (which includes number of non-latin, no asian, hindi, etc):
find /var/www -iregex '^[ -ΓΏ]+$' -o -print # note dieresis on "y"