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