CCMT(1)                     General Commands Manual                    CCMT(1)



NAME
       ccmt - grep c-lang cmt with visible/printf line oriented format

SYNOPSIS
       ccmt [-hHVBE] [files...]

TL_DR
       ~$ printf '"//"\n /*-\n*/\n' | ccmt     #>> output /*-*/
       ~$ ccmt a.txt b.txt      #>> cat a.txt b.txt|ccmt
       ~$ ccmt <a.txt | while read -r a;do printf "$a"; done


OPTIONS
       -h, -H, -V
              usage, version

       -B     use BRE innercode for dbg (dfl)

       -E     use ERE innercode for dbg (use gnu-sed)

       files...
              use src 'cat files...'. cat /dev/stdin is noarg.

DESCRIPTION
       ccmt  grep c-lang cmt //, /**/. ccmt assumes the src doesnt holds  tri‐
       graphs ??X and long-line syntax \(\n).
       output is 1-line == 1-cmt. non-printable chars is escaped as  \001,  \n
       and printf '$line' outputs raw comment strings.

EXIT_STATUS
       always $? == 0. return !0 if the options is invalid.

NOTES
       -

CONFORMING_TO
       posix-shell

COPYRIGHT
       Copyright (C) 2022 Momi-g
       License GPLv3+ <https://gnu.org/licenses/gpl.html>

VERSION
       2022-03-20 v1.0.1 (2022-03-18 v1.0.0)

SEE_ALSO
       sed(1)
       https://gcc.gnu.org/onlinedocs/gcc-3.2.3/cpp/Initial-processing.html



                                                                       CCMT(1)
