rcat is a fast, minimal command-line tool that recursively concatenates files from a directory tree.
It extends the classic cat with recursive traversal, file-type filtering, and optional headers, while keeping a simple, Unix-friendly interface.
- Recursive directory walking
- Filter files by extension
- Optional header separator per file
cargo install rcatPrecompiled binaries are available on the GitHub Releases page:
- Linux (x86_64)
- macOS (Intel / Apple Silicon)
- Windows
Download the binary for your platform, place it in your PATH, and you're good to go.
Concatenate all files recursively:
rcat .Only include specific extensions:
rcat . -r -e rs -e tomlPrint a header before each file:
rcat . --headerThis project is licensed under the MIT License.
Contributions, issues, and suggestions are welcome.
Feel free to open an issue or submit a pull request.