Changeset 126 in MondoRescue for branches/2.05/mondo/mondo/common/newt-specific.c
- Timestamp:
- Nov 19, 2005, 1:53:52 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.05/mondo/mondo/common/newt-specific.c
r99 r126 562 562 if (grep_for_me[0] != '\0') 563 563 { 564 sprintf (command, "cat %s | grep \"%s\" | tail -n%d", filename, 565 grep_for_me, g_noof_log_lines); 566 } 567 else 568 { 569 sprintf (command, "cat %s | tail -n%d", filename, g_noof_log_lines); 564 sprintf (command, "grep '%s' %s | tail -n%d", 565 grep_for_me, filename, 566 g_noof_log_lines); 567 } 568 else 569 { 570 sprintf (command, "cat %s | tail -n%d %s", g_noof_log_lines, filename); 570 571 } 571 572 fin = popen (command, "r");
Note:
See TracChangeset
for help on using the changeset viewer.