this already keeps me busy for some hours...
I'm trying to delete/filter some parts of a file.
Used sed an grep so far.
My file looks like this:
My problem is extracting par1 and par2 so that I only have a list of these two
I tried the following
cat filename | grep [a-z_0-9]
to get rid of the lines with the uppercase letters and square brackets.
By this I get some output where the correct lines a marked in red, but the [TOPIC] line, which does not match the grep-pattern and not colored, is still included in the output.
Any idea how to get this working?