field

command module
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

README

field

GitHub go.mod Go version GitHub Repo stars GitHub License GitHub Tag

[!IMPORTANT] 🔥 Found this useful? A quick star goes a long way.

field is a easy, elegant, minimal and flexible way to parse and access fields from stream of text.

Made with VHS

Features

  • Extract specific fields from each input line.
  • Support for custom delimiters.
  • Option to ignore empty lines.
  • Limit the number of fields processed.
  • Support multiple field selections.

Installation

From source

Clone and build:

git clone https://github.com/Nadim147c/field.git
cd field
make
make install PREFIX=$HOME/.local

You can also set PREFIX=/usr to install the binary to /usr/bin.

This will:

  • Build the binary (field)
  • Install the binary to ~/.local/bin (or $PREFIX/bin)
  • Install shell completions for Bash, Zsh, and Fish

Usage

field [flags] ...<range>

Contributing

Contributions are welcome! To contribute:

  1. Fork and Clone the repository.
  2. Create a new branch (git checkout -b feature/my-feature).
  3. Make your changes.
  4. Run tests and linters:
make lint
  1. Submit a pull request.

Please follow the existing code style and write clear commit messages.

License

field is licensed under the GPL-3.0 License. See LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL