edict-grep(1)

edict-grep1

Search edict files with specific queries

Usage

edict-grep [options] <query> ...

Overview

The edict-grep command is used to search the EDICT file(s) for specific queries based on various options.

Options

-c

Match only common entries.

-w

Word match; each English query must match whole words only.

-e

Exact match; each query must match an entire EDICT field.

-s

Make English queries case-sensitive (default is insensitive).

-f EDICT_FILE

Path to EDICT file (default: /usr/share/edict/edict). This program assumes EDICT is in the original EUC-JP encoding.

-c

Current terminal character encoding (default: UTF-8).

-h

Show this message.

Examples

If you use multiple queries, it is like an AND search. For example:

$ edict-grep cold war

will match all entries mentioning both 'cold' and 'war'. To search for an exact sentence, use shell escaping:

$ edict-grep 'cold war'

(and consider -e).

Notes

Be sure to put the queries only AFTER all options!

Author

Written by Ludovic Drolez <[email protected]>

From edict 2024.08.08-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.