Bash script to pull out x number of starting comment lines into another file
- by Corey Hart
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?