Skip to content
Browse files

* Add ugly and very simple script that helps adding names to the data…

  • Loading branch information...
1 parent e98358f commit 676ff5a6d6d0b659dbe1efe3104d926f6b6d6ca0 @ChrisOelmueller ChrisOelmueller committed
Showing with 17 additions and 0 deletions.
  1. +17 −0 development/
17 development/
@@ -0,0 +1,17 @@
+# Reads a list of names (one per line) from file given by first parameter.
+# Then prints sqlite command to insert the names into the table specified
+# by second argument (city or ship).
+# The third parameter could e.g. read fisher, trader, pirate, player where
+# these are sensible.
+# No escaping, no errors caught, just a plain stupid one-liner.
+# Names suitable for more than one category would need manual fixes too.
+# (else they are added more than once to the respective databases)
+# example invocation: ./ namefile ship trader
+cat $1 | while read line; do
+ echo "INSERT INTO $2names (name,for_$3) VALUES ('$line','1');"

0 comments on commit 676ff5a

Please sign in to comment.
Something went wrong with that request. Please try again.