Skip to content

Commit

Permalink
add renamer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Baltzell committed Aug 10, 2023
1 parent 86e9f12 commit dda773f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions util/rename.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env python3

import os,re

for d,subdirs,files in os.walk('./coatjava'):
for file in files:
if not file.endswith('.yaml'):
continue
m = re.match('.*(_pass[12][v12]*).*',file)
if m is None:
continue
os.path.normpath(
oldfile = file
newfile = file.replace(m.group(1),'')
if os.path.islink(oldfile):
print(oldfile)
else:
print('NO')

0 comments on commit dda773f

Please sign in to comment.