def merge_shared_tsvs(filename):
  """Merge multiple tsv files into one."""
  output_files = gfile.glob("%s-*-of-*" % filename)
  all_examples = []
  for output_file in output_files:
    examples = read_tsv(output_file)
    all_examples.extend(examples)
  write_tsv(all_examples, filename)
Merge multiple tsv files into one.
language/compgen/nqg/tasks/tsv_utils.py