--suppress-matched
Suppress the lines matching PATTERN.
An option of csplitx.
Usage
csplitx --suppress-matched FILE PATTERN...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
--suppress-matched | none | suppress the lines matching PATTERN |
Examples
Split a multi-document Kubernetes YAML into one manifest per file, dropping the '---' lines
csplitx -z --suppress-matched -f manifest- -b '%02d.yaml' all.yaml '/^---$/' '{*}'Help in the terminal
gnux help csplitx --suppress-matched