Home | History | Annotate | Download | only in posix

Lines Matching refs:pattern

140                  [0-9]    A number, substitute only that occurrence of pattern
141 g Global, substitute all occurrences of pattern
175 // processed pattern list
176 struct double_list *pattern;
249 // Apply pattern to line from input file
279 command = TT.restart ? ((struct sedcmd *)TT.restart)-1 : (void *)TT.pattern;
355 for (command = (void *)TT.pattern; command; command = command->next)
384 command = (void *)TT.pattern;
639 for (command = (void *)TT.pattern; command; command = command->next)
717 // Translate pattern strings into command structures. Each command structure
721 struct sedcmd *command = (void *)TT.pattern;
734 TT.pattern = TT.pattern->prev;
735 command = dlist_pop(&TT.pattern);
751 if (command) dlist_add_nomalloc(&TT.pattern, (void *)command);
805 // Add step to pattern
816 // s/pattern/replacement/flags
822 // get pattern (just record, we parse it later)
988 error_exit("bad pattern '%s'@%ld (%c)", errstart, line-errstart+1L, *line);
1007 // Parse pattern into commands.
1009 // If no -e or -f, first argument is the pattern.
1011 if (!*toys.optargs) error_exit("no pattern");
1021 dlist_terminate(TT.pattern);
1027 // Inflict pattern upon input files. Long version because !O_CLOEXEC