This shows you the differences between two versions of the page.
| — |
grep [2020/05/11 10:24] (current) valerio created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <code> | ||
| + | grep -e 'Exception' app.log* | grep -vE 'Exception:(401|403|200)]' | ||
| + | </code> | ||
| + | -v inverte il pattern di ricerca ovvero esclude le righe che matchano il pattern | ||
| + | |||
| + | -E usa le [[https://en.wikipedia.org/wiki/Regular_expression#POSIX_extended|Extended regular Expression]] | ||