Skip to content

Instantly share code, notes, and snippets.

@anak10thn
Created February 5, 2013 09:12
Show Gist options
  • Save anak10thn/4713232 to your computer and use it in GitHub Desktop.
Save anak10thn/4713232 to your computer and use it in GitHub Desktop.
#!/bin/bash
awk -F ',' '{ if($1 != NULL){printf("INSERT INTO Testing (Date,User,Usage) VALUES('%s', '%s', %d);\n", $1, $2, $3); }}' mysql.csv >mysql.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment