toraritte / program

1 stars 0 forks source link

Show TCS captures #6

Open toraritte opened 5 years ago

toraritte commented 5 years ago

Use CLI arguments to toggle visibilty.

Study snippet in the pcre2grep documentation:

  echo -e "abcde\n12345" | pcre2grep \
    '(?x)(.)(..(.))
    (?C"/bin/echo|Arg1: [$1] [$2] [$3]|Arg2: $|${1}$| ($4)")()' -

  Output:

    Arg1: [a] [bcd] [d] Arg2: |a| ()
    abcde
    Arg1: [1] [234] [4] Arg2: |1| ()
    12345