2020-10-14

This commit is contained in:
2020-10-14 09:44:31 +02:00
parent 85a8b70172
commit 13d273fc6f
6 changed files with 46 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/python3
import pathlib
import subprocess
for filename in pathlib.Path('.').glob('**/*.md'):
# f = open(filename)
print('file: %s' % filename)
new_filename = str(filename).lower().replace(' ', '-')
command = ['git', 'mv', filename, new_filename]
print('would run: %s' % command)
# subprocess.run(command)