Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/tsv2tablerow
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tsv2tablerow')
-rwxr-xr-xscripts/tsv2tablerow8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/tsv2tablerow b/scripts/tsv2tablerow
new file mode 100755
index 0000000..d8b378d
--- /dev/null
+++ b/scripts/tsv2tablerow
@@ -0,0 +1,8 @@
+#!/bin/oksh
+
+IFS="\n"
+while read line; do
+echo -n "_TABLE_ROW("
+ echo -n "$line" | tr -s "\\t" ","
+ echo ")"
+done < "$1"