commit c9c2287e2cc6bed306e3a01f58387a6cd36e046e parent 960bacd68ee1698c89d9a450628e4df7044e186a Author: Pavel Renev <an2qzavok@gmail.com> Date: Sat, 14 Sep 2024 23:36:32 +0000 rc/tl2fltp: one-off script for data conversion Diffstat:
A | rc/tl2fltp | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/rc/tl2fltp b/rc/tl2fltp @@ -0,0 +1,15 @@ +#!/bin/rc +# converts wdb database from tablist format to new fltp format + +rfork e + +wdb=$home/lib/wdb/data +flt=$home/lib/wdb/flt +mkdir -p $flt +for(f in $wdb/*){ + uuid=`{basename $f} + echo $uuid + echo '{' $uuid>$flt/$uuid + wdb2fltp<$f>>$flt/$uuid + echo '}'>>$flt/$uuid +}