. | egrep [^ a-zA-Z0-9 _./-\s]
, !
bash , -. [^ group].
, , , UTF-8. , UTF-8, . Python 2.x, :
import os.path
def walk(dir):
for child in os.listdir(dir):
child= os.path.join(dir, child)
if os.path.isdir(child):
for descendant in walk(child):
yield descendant
yield child
for path in walk('.'):
try:
u= unicode(path, 'utf-8')
except UnicodeError: