Skip to content

Commit f1e1ecd

Browse files
committed
added renamer bash script WIP
1 parent 054ed12 commit f1e1ecd

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ Monika After Story/update/updates.json
3535
zzzz*
3636
.vscode
3737
cacert.pem
38+
venv/

utils/spack_renamer

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
IMG_REG="^acs-$1-.*png$"
4+
5+
mkdir $1
6+
for png in *.png; do
7+
if [[ $png =~ $IMG_REG ]]; then
8+
IMG_NAME=${png#*-$1-*}
9+
#echo $png
10+
#echo $1/$IMG_NAME
11+
git mv $png $1/$IMG_NAME
12+
fi
13+
done
14+

0 commit comments

Comments
 (0)