Went through a great many different utilities on Linux, in the end, it never came to anything. They all fall down on multi-line comments. Stopped on grep with the -E key. Is this way of getting all the C-style comments from the file correct?
Please advise a suitable utility and, if necessary, a regular program.
grep -Eoz "/\*+[^*]*\*+([^/*][^*]*\*+)*/"? - Wiktor Stribiżewjavascript,linux,greptags? Secondly, your task is not very ordinary (pull out from the C code of the commenatry and it is in bash). I would like to know why bash and what are you going to do next with these comments? Will you continue to work with them in bash? - vihtor