rollcat

command module
v0.0.0-...-6ab4668 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 7 Imported by: 0

README

rollcat

Print multiple files in order, with a header for each input path.

Build:

git clone https://pubcode.archuser.org/firebadnofire/rollcat.git
cd rollcat
go build

OR

go install archuser.org/rollcat@latest

Usage:

./rollcat [options] <path>...

Use -q or --quiet to suppress skip/error diagnostics and binary-skip notices. Use -h or --help to print help text. Use - as a path to read from stdin.

[11:24:51] user@system:~/git/rollcat git:(main*) $ ./rollcat test/*
=== test/t1.txt:
test1

=== test/t2.txt:
test2

=== test/t3.txt:
test3

=== test/tmp-binary:
[binary file skipped]
4ms
user@system:~/git/rollcat git:(main*) $ ./rollcat -q test/*
=== test/t1.txt:
test1

=== test/t2.txt:
test2

=== test/t3.txt:
test3
3ms
user@system:~/git/rollcat git:(main*) $ printf 'stdin content' | ./rollcat -
=== -:
stdin content
user@system:~/git/rollcat git:(main*) $

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

  • main.go

Jump to

Keyboard shortcuts

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