added a script to analysis a text file / stdin