oddmu-search(1)

Name

oddmu-search - search the Oddmu pages

Synopsis

Description

The "search" subcommand resursively searches the Markdown files in the current directory tree. That is, the files in the current directory and all its child directories are searched.

Be default, this returns a Markdown-formatted list suitable for pasting into Oddmu pages.

If a directory is provided, only files from the tree starting at that subdirectory are listed, and the directory is stripped from the page name.

If multiple terms are provided, they are all concatenated into a single, space-separated query string. That is, searching for the terms A B and the term "A B" is equivalent.

See oddmu-search(7) for more information of how pages are searched, sorted and scored.

oddmu-search(7)

Options

Examples

Search for the two words "Alex" and "Schroeder". All of the following are equivalent: Alex Schroeder, Schroeder Alex, "Alex Schroeder", "Schroeder Alex". The ordering of terms does not matter.

~/src/oddmu $ oddmu search Alex Schroeder
Search for Alex Schroeder, page 1: 3 results

Search for the exact phrase "Alex Schroeder". In order to pass the quotes to Oddmu, a second level of quotes is required. All of the following are equivalent: '"Alex Schroeder"', "'Alex Schroeder'", \"Alex\ Schroeder\", \"Alex Schroeder\".

~/src/oddmu $ oddmu search "'Alex Schroeder'"
Search for 'Alex Schroeder', page 1: 1 result

See also

oddmu(1), oddmu-replace(1), oddmu-search(7)

oddmu(1)

oddmu-replace(1)

oddmu-search(7)

Authors

Maintained by Alex Schroeder alex@gnu.org.

alex@gnu.org