Lines Matching refs:script
491 FILE *script; /* shell script file */
498 if ((script = fopen(temp2, "w")) == NULL) {
605 (void) fprintf(script, "ed - <<\\!\nH\n");
628 (void) fprintf(script,
633 (void) fprintf(script, "e %s\n", oldfile);
636 (void) fprintf(script,
640 (void) putc('\\', script);
642 (void) putc(*s, script);
644 (void) putc('/', script); /* to */
647 (void) putc('\\', script);
649 (void) putc(*s, script);
651 (void) fprintf(script, "/gp\n"); /* and print */
654 (void) fprintf(script, "w\nq\n!\n"); /* write and quit */
655 (void) fclose(script);