The script should try to aggreated .txt belonging to the same entity into the same .txt file