Hi Bernie82,
Just my two cents. I did write a sed without the option '-r'. It was the form we learned before Open Software has come.
Code:
cat $FILE | sed -e "s/^[^0-9]*\([0-9][0-9]*\) .*[^0-9]\([0-9]\{2\}\)$/\1 \2/"
The parentheses define the expressions to be remembered. In this version, the parentheses must be escaped. The circumflex symbol on the beginning of the expression means beginning of the line; inside a bracket expression means negation of that range. The dollar sign means end of the line. As you have just two expressions to be remembered you don't need to parenthesize all the expressions, just the ones you want. In the substitution part of the sed expression, you refer to the remembered expressions by the numerical escaped order you declared; then the reason for the "\1 \2".
However you must select the lines which can be printed before: if the regular expression is not found, sed passes the entire line to the output. You can copy the expression from the sed to create a grep on the pipe before sed.