#!/bin/bash dir=$(dirname "$(readlink -f "$0")") trie="$dir/../trie.py" read -r -d '' input <