Skip to content

Instantly share code, notes, and snippets.

@gerhard
Created June 8, 2012 23:28
Show Gist options
  • Save gerhard/2898672 to your computer and use it in GitHub Desktop.
Save gerhard/2898672 to your computer and use it in GitHub Desktop.
if [ $(ls | grep -c "backup.*tgz") > 0 ]
then
unless folder _purge exists; do
mkdir _purge
done
mv backup*tgz _purge
mv backup*md5 _purge
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment