Skip to content

Instantly share code, notes, and snippets.

@mazuhl
Created March 29, 2011 17:19
Show Gist options
  • Save mazuhl/892798 to your computer and use it in GitHub Desktop.
Save mazuhl/892798 to your computer and use it in GitHub Desktop.
Crop date and reformat
awk -F, '{x = substr($3,8); print $1","$2","20x","$3","$4","$5","$6 }' file.csv > output.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment