void main()
{
char comando[2000];
char resultado[500]
sprintf(comando, "grep '[0-9]{50}-' input.txt);
resultado = system(comando);
printf("%s\n",resultado);
}
I need only 1 match, and return the value in result, the above code does not compile, it's just an example of how you'd like it to be.