chore(prvt):Move user scripts into prvt submodule for processing
[BK-2020-03.git] / user / bkrandlujvo
diff --git a/user/bkrandlujvo b/user/bkrandlujvo
deleted file mode 100755 (executable)
index 35e09e8..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/bash
-# usage: bkrandlujvo
-
-INPUT_FILE="/home/baltakatei/Sync/kodawkuori-07/2020/reference-PERS/lojban/20190626..gismu_english_order.txt"
-if [ ! -f "$INPUT_FILE" ]; then echo "ERROR: gismu list text file not found." 2>&1 ; exit 1; fi
-
-randGismuDef () {
-    # usage: randGismuDef [gismu.txt file]
-    # output: <<gismu>>,<<def>>
-    FILE="$1"
-    randLineNum=$(shuf -n1 -i2-$(cat "$FILE" | wc -l)) # Generate random line number of FILE
-    # Output random 2nd space-delimted field (gismu) from file
-    #echo $(cat "$FILE" | cut -d' ' -f2-3 | head -n"$randLineNum" | tail -n1 )
-    echo $(cat "$FILE" | awk '{print $1 "," $3}' | head -n"$randLineNum" | tail -n1 )
-}
-
-randGismu () {
-    # usage: randGismu [gismu.txt file]
-    # output: <<gismu>>
-    FILE="$1"
-    randLineNum=$(shuf -n1 -i2-$(cat "$FILE" | wc -l)) # Generate random line number of FILE
-    # Output random 2nd space-delimted field (gismu) from file
-    echo $(cat "$FILE" | awk '{print $1}' | head -n"$randLineNum" | tail -n1 )
-}
-
-GISMU1=$(randGismu "$INPUT_FILE")
-GISMU2=$(randGismu "$INPUT_FILE")
-GISMU3=$(randGismu "$INPUT_FILE")
-
-#RAW1=$(randGismuDef "$INPUT_FILE")
-#RAW2=$(randGismuDef "$INPUT_FILE")
-#RAW3=$(randGismuDef "$INPUT_FILE")
-
-#GISMU1=$(echo "$RAW1" | cut -d',' -f1)
-#GISMU2=$(echo "$RAW2" | cut -d',' -f1)
-#GISMU3=$(echo "$RAW3" | cut -d',' -f1)
-
-#DEF1=$(echo "$RAW1" | cut -d',' -f2)
-#DEF2=$(echo "$RAW2" | cut -d',' -f2)
-#DEF3=$(echo "$RAW3" | cut -d',' -f2)
-
-echo "$GISMU1 $GISMU2 $GISMU3"
-#echo "$DEF1 $DEF2 $DEF3"
-
-if command -v jbofihe 1>/dev/null 2>&1; then
-    echo "$GISMU1" | jbofihe -x
-    echo "$GISMU2" | jbofihe -x
-    echo "$GISMU3" | jbofihe -x
-else
-    echo "ERROR: jbofihe command not available." 2>&1;
-fi
-
-if command -v jvocuhadju 1>/dev/null 2>&1; then
-    jvocuhadju "$GISMU1" "$GISMU2" "$GISMU3";
-else
-    echo "ERROR: jvocuhadju command not available." 2>&1;
-fi
-
-exit 0