Create a gist now

Instantly share code, notes, and snippets.

Embed
Aus dem ~/bin/
import os
illegal = list('''!"#$%&\'()*+,/:;<=>?@[\\]^_`{|}~ ''')
repl = "_"
for root,dir,files in os.walk(os.getcwd()):
for fi in files:
for ill in illegal:
if ill in fi:
print "found ", os.path.join(root,fi)
newname = fi.replace(ill,repl)
os.rename( os.path.join(root,fi) , os.path.join(root,newname) )
@thkoch2001

This comment has been minimized.

Show comment
Hide comment
@thkoch2001

thkoch2001 Jan 20, 2012

compare debian package detox

compare debian package detox

@seraphyn

This comment has been minimized.

Show comment
Hide comment
@seraphyn

seraphyn Jan 20, 2012

Very old, never used, nice to know thanks ツ

Owner

seraphyn commented Jan 20, 2012

Very old, never used, nice to know thanks ツ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment