Skip to content

Instantly share code, notes, and snippets.

@akiniwa
Created April 4, 2014 03:09
Show Gist options
  • Save akiniwa/9967316 to your computer and use it in GitHub Desktop.
Save akiniwa/9967316 to your computer and use it in GitHub Desktop.
sed -e "s/\(201[0-9]-[0-9]\{2\}-\)\(0[1-9]\|10\)/\11/g" -e "s/\(201[0-9]-[0-9]\{2\}-\)\(1[1-9]\|20\)/\12/g" -e "s/\(201[0-9]-[0-9]\{2\}-\)\(2[1-9]\|30|31\)/\13/g" month.txt > _month.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment