Skip to content

Nadim147c/field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A easy, elegant and flexible tool for accessing fields

Resources

License

Stars

Watchers

Forks