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/searchwith the directory you want to search (e.g.,.for the current directory).-type fensures only files are matched.-name "*.md"filters for.mdfiles.
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
-rfor recursive search.-llists only filenames.--include="*.md"restricts to.mdfiles.