Script that search for chained append in files