Skip to content

Commit 6ea20b1

Browse files
committed
Script to rename files.
1 parent 752ce87 commit 6ea20b1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

renamer.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
OLDNAME="$1"
4+
NEWNAME="${OLDNAME/.cpp/.c}"
5+
6+
mv -f "$OLDNAME" "$NEWNAME"
7+
8+
git mv "$NEWNAME" "$OLDNAME"

0 commit comments

Comments
 (0)