Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fefc3e6

Browse files
Add grep
1 parent e8767b9 commit fefc3e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Handy list of oft-used Linux commands that I will never remember. Not intended t
1212
- [Networking](#networking)
1313
- [fish](#fish)
1414
- [wget](#wget)
15+
- [grep](#grep)
1516
- [System Setup](#system-setup)
1617
- [Essential Installs in Ubuntu LTS Minimal](#essential-installs)
1718
- [Increasing swap memory](#increasing-swap)
@@ -104,6 +105,14 @@ chsh -s `which fish`
104105
wget -r -np -R "index.html" -nH -e robots=off --cut-dirs=X <download_URL>
105106
```
106107

108+
### grep
109+
110+
```bash
111+
# https://www.grymoire.com/Unix/Grep.html
112+
# find pattern in files
113+
grep --include=\*.{py, c, h} --exclude=\*.o --exclude-dir={dir1,dir2,*.dst} -rnw '/path/to/somewhere/' -e "pattern"
114+
```
115+
107116
## System Setup
108117
### Essential Installs
109118

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /