Sfoglia il codice sorgente

added new 'grep' one-liners

- signed-off-by: trimstray <trimstray@gmail.com>
pull/78/head
trimstray 3 anni fa
parent
commit
cf1bd00f65
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. +10
    -0
      README.md

+ 10
- 0
README.md Vedi File

@@ -2899,6 +2899,16 @@ fgrep "pattern" * -R
grep . filename > newfilename
```

###### Show only for multiple patterns

```bash
grep 'INFO*'\''WARN' filename
grep 'INFO\|WARN' filename
grep -e INFO -e WARN filename
grep -E '(INFO|WARN)' filename
egrep "INFO|WARN" filename
```

###### Except multiple patterns

```bash


Caricamento…
Annulla
Salva