Files
gh-dnvriend-concat-glob-too…/commands/stdin.md
2025-11-29 18:23:11 +08:00

38 lines
854 B
Markdown

---
description: Concatenate files from stdin input
argument-hint: --stdin
---
Read file paths from stdin and concatenate them.
## Usage
```bash
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
```bash
# 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.