grep
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
grep [2020/11/02 11:10] – [See Also] guide 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 ===== | ||
Line 27: | Line 31: | ||
* [[plaintext]] | * [[plaintext]] | ||
- | {{tag> | + | {{tag> |
grep.1604275836.txt.gz · Last modified: 2020/11/02 11:10 by rjt