854 B
854 B
description, argument-hint
| description | argument-hint |
|---|---|
| Concatenate files from stdin input | --stdin |
Read file paths from stdin and concatenate them.
Usage
find ... | concat-glob-tool --stdin --output-file FILE [OPTIONS]
Arguments
-s, --stdin: Read paths from stdin (required)-o, --output-file FILE: Output file path (required)--separator TEXT: Separator text (default:---)--no-dry-run: Execute concatenation-f, --force: Overwrite existing file
Examples
# From find command
find . -name '*.py' | concat-glob-tool --stdin -o output.txt --no-dry-run
# From fd command
fd -e py | concat-glob-tool --stdin -o output.txt --no-dry-run
# Filtered with grep
find . -name '*.py' | grep -v test | concat-glob-tool --stdin -o output.txt --no-dry-run
Output
Files concatenated with separators including filenames.