.TP
\fB-l \fI<number>\fR, \fB--number-of-lines \fI<number>\fR
specify the maximum number of lines to take into account
-.TP
-\fB-f \fI<filename>\fR, \fB--input-file \fI<filename>\fR
-specify a file to search into (option kept for compatibility reasons)
.SH "EXAMPLES"
{ "add-control-qs", no_argument, 0, 'w' },
{ "monochrome", no_argument, 0, 'm' },
{ "no-beep", no_argument, 0, 'q' },
- { "input-file", 1, 0, 'f' },
{ "revert-order", no_argument, 0, 'i' },
{ "remove-bash-prefix", no_argument, 0, 'b' },
{ "remove-zsh-prefix", no_argument, 0, 'z' },
int main(int argc, char **argv) {
- char input_filename[BUFFER_SIZE], output_filename[BUFFER_SIZE];
+ char output_filename[BUFFER_SIZE];
char *s;
char pattern[BUFFER_SIZE];
int c, k, l, n;
setlocale(LC_ALL, "");
- strcpy(input_filename, "");
strcpy(output_filename, "");
while (!rest_are_files &&
error_flash = 1;
break;
- case 'f':
- strncpy(input_filename, optarg, BUFFER_SIZE);
- break;
-
case 'i':
inverse_order = 1;
break;
hash_table = 0;
}
- if(input_filename[0]) {
- read_file(hash_table,
- input_filename,
- nb_lines_max, &nb_lines, lines);
- }
-
while(optind < argc) {
read_file(hash_table,
argv[optind],