A CLI tool that concatenates multiple files into one output, separated by filename headers.
- Python 3.8 or higher
- uv package manager (installation instructions below)
On Unix-like systems (Linux, macOS):
curl -LsSf https://astral.sh/uv/install.sh | shFor other installation methods, see UV Installation Guide.
- Clone the repository:
git clone <repository-url>
cd concat-tool- Install the tool:
uv tool install .That's it! The tool is now available as concat-files in your terminal.
Print concatenated files to terminal:
concat-files file1.txt file2.md file3.logSave concatenated output to a file:
concat-files file1.txt file2.md file3.log --output combined.txtShow version information:
concat-files --versionIf you want to modify the tool:
-
Clone the repository as above
-
Make your changes to the code
-
The changes will take effect immediately - no rebuild or reinstall needed!
If you want to distribute the tool:
- Build the package:
uv build- Install from the built wheel:
uv tool install dist/*.whlTo remove the tool:
uv tool uninstall concat-toolMIT License