Skip to content

Instantly share code, notes, and snippets.

@magnetikonline
Created October 8, 2014 09:37
Show Gist options
  • Save magnetikonline/b455a75fca6b863cb8d1 to your computer and use it in GitHub Desktop.
Save magnetikonline/b455a75fca6b863cb8d1 to your computer and use it in GitHub Desktop.
Add one day to file modification time on a collection of files in bash.
#!/bin/bash
find . -type f -exec touch -r "{}" -d '+1 day' "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment