Menu

Toshimaru's Blog

Grep text recursively

Grep text recursively in a current directory

The folloing command greps grep_text in a current directory.

$ grep -r "grep_text" .

Grep text recursively in a specific directory

The folloing command greps grep_text in grep_directory directory.

$ grep -r grep_text grep_directory

Grep text recursively and list only file names

The folloing command greps grep_text and list files which includes the text.

$ grep -rl grep_text .
Load more