#include #include main(int argc, char **argv) { FILE *f; char key[64]; char s[512]; strncpy(key, *++argv, 63); f = fopen(*++argv, "r"); while (fgets(s, 511, f) != NULL) { if (strstr(s, key)) { printf(s); } } }