Narthex

Modular dictionary generator
git clone git://mcdim.xyz/Narthex.git
Log | Files | Refs | README | LICENSE

nwiz.sh (872B)


      1 #!/bin/sh
      2 
      3 printf "$(curl -s file:///var/lib/narthex/elder.txt)\n"
      4 
      5 echo "=Questions="
      6 echo -n "Name: "
      7 read n; echo "$n" >> /tmp/nrthxtmp;
      8 echo -n "Last name: "
      9 read lname; echo "$lname" >> /tmp/nrthxtmp;
     10 echo -n "Nickname: "
     11 read nn; echo "$nn" >> /tmp/nrthxtmp;
     12 echo -n "Birthday: "
     13 read bd; echo "$bd"  >> /tmp/nrthxtmp;
     14 echo -n "Birthyear: "
     15 read by; echo "$by" >> /tmp/nrthxtmp;
     16 echo -n "Phone number: "
     17 read phn; echo "$phn" >> /tmp/nrthxtmp;
     18 echo -n "Pet name: "
     19 read pn; echo "$pn" >> /tmp/nrthxtmp;
     20 echo -n "Current City: "
     21 read cy; echo "$cy" >> /tmp/nrthxtmp;
     22 echo -n "Spouse name: "
     23 read sn; echo "$sn" >> /tmp/nrthxtmp;
     24 echo "Other keywords (separated by space): "
     25 read o; echo "$o"| tr " " "\n" >> /tmp/nrthxtmp;
     26 
     27 cat /tmp/nrthxtmp | sed '/^$/d' | tr -d ' ' | nhance | ncom -b | ninc 1 30 | nleet > "${n}".txt
     28 rm /tmp/nrthxtmp
     29 echo "[!] Exported at $n.txt"