retrieving headers / comment blocks
- by AnC
I have a number of log files that look like this:
/*
header
arbitrary number of lines
*/
blah blah
blah blah
Using simple Bash commands (preferably sed, not awk), how would I retrieve only the header lines (ideally including the comment markers)?
I've RTFM and tried googling, also found some hints, but not enough to get me started.
Thanks!