Skip to content

Instantly share code, notes, and snippets.

@goFrendiAsgard
Created January 12, 2020 04:28
Show Gist options
  • Save goFrendiAsgard/4ed045e260070653b2d260237faa9c33 to your computer and use it in GitHub Desktop.
Save goFrendiAsgard/4ed045e260070653b2d260237faa9c33 to your computer and use it in GitHub Desktop.
#!/bin/sh
CURRENT_DATE=$(date +"%Y-%m-%d")
for FILENAME in $(ls | grep '\.java$')
do
cp ${FILENAME} ${FILENAME}.${CURRENT_DATE}.bak
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment