Skip to content

Commit

Permalink
Script to rename files.
Browse files Browse the repository at this point in the history
  • Loading branch information
bayerj committed Feb 13, 2009
1 parent 752ce87 commit 6ea20b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions renamer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

OLDNAME="$1"
NEWNAME="${OLDNAME/.cpp/.c}"

mv -f "$OLDNAME" "$NEWNAME"

git mv "$NEWNAME" "$OLDNAME"

0 comments on commit 6ea20b1

Please sign in to comment.