Preliminary

Our shell is based on the Z Shell, namely zsh, and our OS is based on unix-like system (Linux, macOS, e.t.).

Commands Guide

find

To recursively search for .md (Markdown) files in a directory and its subdirectories, you can use the following find shell command:

1$ find /path/to/search -type f -name "*.md"
  • Replace /path/to/search with the directory you want to search (e.g., . for the current directory).

  • -type f ensures only files are matched.

  • -name "*.md" filters for .md files.

grep

To recursively search for .md (Markdown) files in a directory and its subdirectories, you can use the following grep shell command to list them:

1$ grep -rl --include="*.md" . /path/to/search
  • -r for recursive search.

  • -l lists only filenames.

  • --include="*.md" restricts to .md files.