grep
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
grep [2020/11/02 11:11] – [See Also] software tag rjt | grep [2024/03/02 16:22] (current) – eg of searching for a term, tidying rjt | ||
---|---|---|---|
Line 6: | Line 6: | ||
Basic use is searching a file for a particular term, and grep spitting out each line that term occurs in. | Basic use is searching a file for a particular term, and grep spitting out each line that term occurs in. | ||
- | '' | + | <code bash>grep [term] [file]</ |
- | With the '' | + | Search all files in current folder |
- | '' | + | <code bash> |
+ | |||
+ | With the '' | ||
+ | |||
+ | <code bash>grep -E ' | ||
Otherwise there' | Otherwise there' | ||
- | NB: '' | + | NB: '' |
- | There' | + | There' |
- | '' | + | <code bash>grep ' |
===== See Also ===== | ===== See Also ===== |
grep.txt · Last modified: 2024/03/02 16:22 by rjt