match_parens(1) DekDoc scripts match_parens(1) (NAME) match_parens - (SYNOPSIS) match_parens [] (OPTIONS) -h -H,--help -V,--version -l,--latex ``...'' "..." -n,--number=N N (: 10) -p,--pairs=S S (: {}[]()""<<>>`'""'') --test (DESCRIPTION) ( ) TeX . . ( . vim :!% ). : () {} [] () <> ( HTML) "" ASCII "" '' ASCII `' 0 1 . HTML HTML =beginrdoc =end . (OPTIONS) -h,--help . -H,--Help less . -V,--version . -l,--latex ``...'' "..." . -n,--number=N N. . -p,--pairs=S S (: {}[]()""''<<>>""`'). ASCII --pairs="''" . -p<<>> . HTML <> . <...> HTML <> --pairs . --test . --pairs . (EXAMPLES) good bad : good: This is a (simple) test without mismatches bad: This is a (simple test containing mismatches . : $ matchparens good 1 || This is a (simple) test 2 || without mismatches $ echo $? 0 $ matchparens bad 1 | (| This is a (simple test 2 | (| containing mismatches $ echo $? 1 : $ matchparens good >/dev/null && echo fine || echo problems fine $ matchparens bad >/dev/null && echo fine || echo problems problems tex : $ for i in *.tex; do matchparens $i >/dev/null || echo $i; done : $ echo -e "This is a ([simple)] test\n" | match_parens 1 ([)]This is a ([simple)] test 2 ([)] (AUTHOR) Wybo Dekker (wybodekker@me.com) (COPYRIGHT) (GPL) () match_parens version 1.45 September 30, 2025 match_parens(1)