Hasty Briefsbeta

Show HN: Wosp – advanced full-text search on the command line

17 days ago
  • #query-language
  • #command-line
  • #text-search
  • Wosp is a command-line program for full-text search on documents, supporting multi-line matches.
  • It features an expressive query language with Boolean, proximity operators, nested queries, truncation, wildcards, and fuzzy search.
  • Installation involves modifying the Makefile's DESTDIR and running `make install`.
  • Basic usage: `wosp "QUERY" file1.txt file2.txt ...`.
  • Wildcard character `?` matches any character; truncation uses `$` or `#` optionally followed by a max character count.
  • Case sensitivity options include ICASE, SCASE, LCASE, UCASE, and TCASE, with edit distance for fuzzy search.
  • Boolean operators: OR, AND, NOT, XOR; OR is the default operator.
  • Parentheses allow for nesting operations, evaluated first for complex queries.
  • Proximity operators like ADJ, NEAR, AMONG, WITH, ALONG, SAME find terms within specified language elements (words, clauses, sentences, etc.).
  • Negated proximity operators (NOT WITH, etc.) are available but less commonly used.
  • Bug reports and issues can be submitted via the author's contact page.