...and with sed:
Code:
sed -n -f sed.scr data.txt
The -n option suppresses output, which an be overridden with the p function when necessary.
sed.scr:
Code:
1p prints first line
/*/{ searches for a line with a * on it and if found executes the commands in the braces
n; outputs pattern space if the -n option isn't set, then replaces pattern space with next line
p; prints the pattern space
}