Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2024-09-14 15:09:51 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2024-09-14 15:09:51 +0200
commitb10e18c0939d693bc833425110e615d6bba7908a (patch)
treefc6a594f3c807905ca1e7e1167d3e070f0044bc7 /scripts
parente9a7c61175caf1e7fca688fe69443b509335a2af (diff)
showing tables in arch style now
Diffstat (limited to 'scripts')
-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"