grab

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 10 Imported by: 0

README

grab

grab is a grep-like command-line tool written in Go.


Installation

Go install
go install "github.com/aelberthcheong/grab@latest"
Build from source
git clone "https://github.com/albertcheong/grab.git"
cd grab
make build

The binary will be available at

bin/grab

Usage

From files
grab [options] <pattern> [file1 file2 ...]
From standard input (pipe)
cat dummy.txt | grab <pattern>

Exit Codes

Exit Code Meaning
0 Success; Success (at least one match found)
1 No match; No matches found
2 Error; such as invalid options or a non existing input file

License

MIT License. See LICENSE for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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