Concatenate files matching glob patterns
Concatenate multiple files matching glob patterns into a single output file. Use it to prepare code reviews, documentation bundles, or training data by combining files with clear separators showing each file's origin.
/plugin marketplace add dnvriend/concat-glob-tool/plugin install concat-glob-tool@concat-glob-toolpatternsConcatenate files matching PATTERNS to output file with separators.
concat-glob-tool PATTERNS... --output-file FILE [OPTIONS]
PATTERNS...: Glob patterns (e.g., *.py, src/**/*.md)-o, --output-file FILE: Output file path (required)--separator TEXT: Separator text (default: ---)-n, --dry-run: Preview (default, enabled)--no-dry-run: Execute concatenation-f, --force: Overwrite existing file-v/-vv/-vvv: Verbosity (INFO/DEBUG/TRACE)# Preview concatenation (dry-run)
concat-glob-tool '*.py' -o output.txt
# Execute concatenation
concat-glob-tool '*.py' '*.md' -o output.txt --no-dry-run
# Custom separator
concat-glob-tool '*.py' -o output.txt --separator '===' --no-dry-run
Files concatenated with format: \n---\n# FILENAME\n---\n