#include <stdio.h>
#include <string.h>
#include <stdlib.h>

main()

{
int	i;
FILE	*fpt;
char	data[320],command[640],output[320],gt[320];

fpt=fopen("../DATA_FILENAMES.txt","r");
while (1)
  {
  i=fscanf(fpt,"%s",data);
  if (i != 1)
    break;
  strcpy(output,data);
  output[4]='_';
  output[7]=0;
  strcat(output,".txt");
  strcpy(gt,data);
  gt[8]=0;
  strcat(gt,"gt_union.txt");
  //sprintf(command,"scale-detect ../%s > bites/%s",data,output);
  sprintf(command,"perf bites/%s ../%s",output,gt);
  printf("%s\n",command);
  }
fclose(fpt);
}

