Skip to content

Instantly share code, notes, and snippets.

@l-modolo
Created March 23, 2015 22:39
Show Gist options
  • Save l-modolo/228b51a96fc8689668d2 to your computer and use it in GitHub Desktop.
Save l-modolo/228b51a96fc8689668d2 to your computer and use it in GitHub Desktop.
alternative to renaming old file with a .back
#!/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