grep
[ripgrep](https://texonom.com/ripgrep-33d3d44bfc1c4c1692f2b7a5c2897879) 


### | grep regex 
```typenetstat | grep TIME_WAIT | wc -lnetstat | grep ESTABLISHED | wc -l```

### grep alias
```typefind / | grep "*."egrep = grep -E     # 'egrep'은 grep 명령어에 -E 옵션을 붙인 것과 동일fgrep = grep -F     # 'fgrep'은 grep 명령어에 -F 옵션을 붙인 것과 동일grep  = grep -G     # 'grep'은 grep 명령어에 -G 옵션을 붙인 것과 동일 (기본값)```

### line
- `-r` - recursive
- `-n` - which line
```typegrep -nr 'yourString*' .```
```typegrep -A 2 -B 3 "some_keyword" *  # 검색된 라인의 앞 3라인, 뒤 2라인 표시```

### grep count
```typegrep -c "some_keyword" some_file```


### which file
- `-H` - which file
```typegrep -H "some_keyword" *```





> [How can I use grep to find a word inside a folder?](https://stackoverflow.com/questions/4121803/how-can-i-use-grep-to-find-a-word-inside-a-folder)

> [command line grep * does not work but grep *. works](https://askubuntu.com/questions/872716/command-line-grep-does-not-work-but-grep-works)

> [Start from the Beginning : 네이버 블로그](https://blog.naver.com/itperson/220839763320)





