Mercurial > getan
view contrib/convert-projects @ 339:435fa7386f51
INTRODUCTION: mentioned key "e" for edit entry. Fixed typo in wizzard.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Wed, 29 Jan 2014 17:45:45 +0100 |
parents | a3fe8e4e9184 |
children |
line wrap: on
line source
#!/usr/bin/awk -f # Convert classic worklog projects file to SQL statements for inseration in the getan database. # USAGE: # ./convert-projects </PATH/TO/projects | sqlite3 time.db BEGIN { FS=":"; } /[^# \t]/ { printf "INSERT INTO projects (key, description) VALUES ('%s', '%s');\n", $1, $2; }