Skip to Content
gnux

--suppress-matched

Suppress the lines matching PATTERN.

An option of csplitx.

Usage

csplitx --suppress-matched FILE PATTERN...

Details

ShortLongValueDefaultMeaning
--suppress-matchednonesuppress 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

On this page