tools:grep
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:grep [2024/09/28 02:55] – [Useful Commands] Humphrey Boa-Gart | tools:grep [2024/09/28 03:07] (current) – Humphrey Boa-Gart | ||
---|---|---|---|
Line 23: | Line 23: | ||
==== Search Files in Current Directory ==== | ==== Search Files in Current Directory ==== | ||
- | You can also use grep to search inside all the files within a folder, and not just one. Just replace the filename with an asterisk. To search the PWD for all files containing // | + | You can also use '' |
$ grep “INSERTSTRING” * | $ grep “INSERTSTRING” * | ||
Line 35: | Line 35: | ||
$ grep “INSERT*” *.txt | $ grep “INSERT*” *.txt | ||
- | The '' | + | The '' |
$ grep -R " | $ grep -R " | ||
- | You can combine flags as well. To search your PWD and all child directories recursively for all //.txt// files containing // | + | You can combine flags as well. To search your pwd and all child directories recursively for all //.txt// files containing // |
$ grep -Rn " | $ grep -Rn " | ||
Line 55: | Line 55: | ||
+ | ==== More Command Flags ==== | ||
+ | |||
+ | There are more flags you can combine with these basic '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
===== Variations ===== | ===== Variations ===== | ||
tools/grep.1727492143.txt.gz · Last modified: 2024/09/28 02:55 by Humphrey Boa-Gart
Find this page online at: https://bestpoint.institute/tools/grep
Find this page online at: https://bestpoint.institute/tools/grep