Skip to content

Instantly share code, notes, and snippets.

@wh13371
Created June 9, 2015 07:46
Show Gist options
  • Save wh13371/f610a827584ad263691c to your computer and use it in GitHub Desktop.
Save wh13371/f610a827584ad263691c to your computer and use it in GitHub Desktop.
linux - move files
FOLDER_YESTERDAY=`date +%Y%m%d --date=yesterday`
FOLDER_TODAY=`date +%Y%m%d`
mkdir -p "${FOLDER_TODAY}"
mv "${FOLDER_YESTERDAY}"/*.log "${FOLDER_TODAY}/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment