Ever needed to see multiple files? This does that
Find a file
2026-02-09 12:26:28 -05:00
test initial commit 2026-02-09 11:02:58 -05:00
.gitignore initial commit 2026-02-09 11:02:58 -05:00
go.mod initial commit 2026-02-09 11:02:58 -05:00
LICENSE Initial commit 2026-02-09 15:53:19 +00:00
main.go commit 2026-02-09 12:26:28 -05:00
README.md commit 2026-02-09 12:26:28 -05:00

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*) $