# Find and kill a process in one line using bash and regex
## Find pid by keyword
```
pgrep -f keyword
```
## Kill pid from the result of find pid by keyword
```
kill -9 $(pgrep -f keyword)
```
## Example kill all processed puma
```
kill -9 $(pgrep -f puma)
```