Skip to content

Instantly share code, notes, and snippets.

@henningjensen
Created August 26, 2009 19:20
Show Gist options
  • Save henningjensen/175740 to your computer and use it in GitHub Desktop.
Save henningjensen/175740 to your computer and use it in GitHub Desktop.
ls -l |grep 2009 |sed -re 's/.*(2009-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}) (.*)/\1 \2/' |awk '{print ($1) (" ") (substr($2,1,2)+2) (substr($2,3,4)) (" ")($3)}' |xargs -i echo "touch -m -t {}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment