Created
March 23, 2015 22:39
-
-
Save l-modolo/228b51a96fc8689668d2 to your computer and use it in GitHub Desktop.
alternative to renaming old file with a .back
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# alternative to renaming old file with a .back | |
# usage : back.sh file_name | |
mv "$1" "$1"$(date +".%m-%d-%y_%T") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment