o
odinpkg.dev
packages / tool / wo

wo

v0.2.0tool

A command line tool written in Odin to search for files and file contents using regex patterns

MIT · updated 1 month ago

wo

A command line tool written in Odin to find files and file contents matching (Odin) regex patterns.

Example usage

Print the usage help:

wo -h

Find all files ending with .py:

wo ".py$"

Find all files ending with .py but exclude files in the folder .venv:

wo ".py$" -e:".venv"

In all files ending with .py but excluding files in the folder .venv, find lines containing def:

wo ".py$" -e:".venv" -c:"def"

In all files ending with .py, find lines containing def:

wo ".py$" -c:"def"

Installation

Build

Run

./build.sh

to get the executable wo.

(Optional) Symlink

Symlink the executable to /usr/local/bin to make it available on PATH:

sudo ln -s $PWD/wo /usr/local/bin