13c0977119e845ccce3568a58a8c5d0c22093565
braney
  Thu Apr 6 14:31:15 2023 -0700
spme tests for making a tool that scrubs recommended track sets refs #28525

diff --git src/hg/utils/rts/loadSessions src/hg/utils/rts/loadSessions
new file mode 100755
index 0000000..5bb9502
--- /dev/null
+++ src/hg/utils/rts/loadSessions
@@ -0,0 +1,14 @@
+dbs="hg19 hg38"
+namedSessionDb=namedSessionDb
+
+for db in $dbs
+do
+    sed '/^ *#/d' ../../htdocs/inc/recTrackSets.$db.tab | tawk '{print $3}' |
+    while read session
+    do
+        contents=`cat $db/$session | tr '\n' '&'`
+        echo "update $namedSessionDb set contents='$contents' where sessionName='$session' and userName='View';" 
+    done 
+done
+#done| hgsql hgcentraltest
+