script to generate a dictionary from a text file or stdinput