Skip to content

Instantly share code, notes, and snippets.

@schuster-rainer
Created March 26, 2012 10:42
Show Gist options
  • Save schuster-rainer/2204388 to your computer and use it in GitHub Desktop.
Save schuster-rainer/2204388 to your computer and use it in GitHub Desktop.
Copy files that are newer than "date" from "source" to "target"
# $0 = date of format 201203220650
# $1 = source
# $2 = target
touch -t $0 .probe
find $1 -type f -newer .probe -exec cp {} $2 \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment