Bash script to pull out x number of starting comment lines into another file
Posted
by Corey Hart
on Stack Overflow
See other posts from Stack Overflow
or by Corey Hart
Published on 2010-04-17T03:41:55Z
Indexed on
2010/04/17
3:53 UTC
Read the original article
Hit count: 229
I am looking for a one liner to pull out the first comment block in any file. The comment blocks look like this:
/*
* This is a
* comment block
*/
I've been trying to play with sed, but just can't get it to work right. Help?
© Stack Overflow or respective owner