grep
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| grep [2020/10/25 13:32] – ↷ Page moved from tool:software:grep to grep 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 25: | Line 29: | ||
| * [[github> | * [[github> | ||
| * [[https:// | * [[https:// | ||
| - | * [[form:plaintext]] | + | * [[plaintext]] |
| - | {{tag>unix linux cli}} | + | {{tag> |
grep.1603593163.txt.gz · Last modified: 2020/10/25 13:32 by rjt
