in reply to Re^2: Print line from file only once even if occurrence of pattern is more than once in the line
in thread Print line from file only once even if occurrence of pattern is more than once in the line
Try to do this way:
while(<$read_tmp_log>) { # reads input line if ( /error|fatal|critical/i ) { # if the line contains error, fata +l or critical case insensitively ... # process data } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Print line from file only once even if occurrence of pattern is more than once in the line
by jayu_rao (Sexton) on Mar 29, 2015 at 18:22 UTC | |
by pme (Monsignor) on Mar 29, 2015 at 18:40 UTC | |
|
Re^4: Print line from file only once even if occurrence of pattern is more than once in the line
by jayu_rao (Sexton) on Mar 29, 2015 at 19:18 UTC | |
by Cristoforo (Curate) on Mar 30, 2015 at 02:18 UTC |