I'm trying to understand these sed rules I found in a makefile, can anyone tell me if I'm reading them correctly?
says, substitute #.* with blanks.
sed -e 's/^[^:]*: *//'
This one eludes me. I know ^ matches a character at the beginning of a line. So I think the first half says, substitute any character that isn't a colon that appears at the beginning of a line. But then what's the *: * part that follows it?
sed -e 's/ *\\$$//'
Not sure about this one either. I think this says to substitute the text string "*\\$$" with nothing?
Delete each line that begins with $$ string?
I'm thinking: Substitute a $ character at the end of a line with a :