Shell script for summarize_tree working