Timeline for How do I grep for multiple patterns with pattern having a pipe character?
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 29, 2018 at 8:03 | comment | added | Jakob | The explanation is that grep's -f option takes a file with multiple patterns. Instead of creating a temporary file (that you may forget to delete afterwards), just use the shell's process substitution: grep -f <(echo foo; echo bar) *.txt | |
| Dec 1, 2017 at 4:12 | comment | added | Peter Mortensen | It could benefit from an explanation. | |
| Feb 3, 2017 at 16:36 | review | Late answers | |||
| Feb 3, 2017 at 16:53 | |||||
| S Feb 3, 2017 at 16:32 | history | suggested | Stephen Rauch | CC BY-SA 3.0 | format commands |
| Feb 3, 2017 at 16:22 | review | Suggested edits | |||
| S Feb 3, 2017 at 16:32 | |||||
| Feb 3, 2017 at 16:17 | review | First posts | |||
| Feb 3, 2017 at 16:23 | |||||
| Feb 3, 2017 at 16:17 | history | answered | DHDHDHD | CC BY-SA 3.0 |