# man > ctie(1)

---
type: CommandReference
command: ctie
mode: man
section: 1
source: man-pages
---

## Quick Reference

- `ctie -c outputfile masterfile changefile...` — merge up to 32 change files into a single change file
- `ctie -m outputfile masterfile changefile...` — apply changes to masterfile, creating a new master file
- Handles CWEB `@i` include files (fully expanded during processing, allowing change files to modify included content)

## Name

ctie — merge or apply CWEB change files

## Synopsis

`ctie -c|-m outputfile masterfile changefile...`

## Options

- `-c` — create a new change file by merging multiple change files (up to 32)
- `-m` — apply the changes to the masterfile, producing a new patched master file

## Environment

- `CWEBINPUTS` — search path for input files (defaults to system default if not set). See [tex(1)](https://www.chedong.com/phpMan.php/man/tex/1/markdown) for details.
- `CWEBINPUTS_ctie` — override specific to CTIE to avoid conflicts with other CWEB programs.

## See Also

[cweb(1)](https://www.chedong.com/phpMan.php/man/cweb/1/markdown), `ctiedoc.tex`, [tie(1)](https://www.chedong.com/phpMan.php/man/tie/1/markdown), [web(1)](https://www.chedong.com/phpMan.php/man/web/1/markdown)