field

[!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.

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:
- Fork and Clone the repository.
- Create a new branch (
git checkout -b feature/my-feature).
- Make your changes.
- Run tests and linters:
make lint
- 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.