Thanks Julf !

The problem is that I use sed about once a year, so I never actually completely grasp how to do stuff like that. It can be so frustrating knowing there is a better way to do things but not being able to work out how to do it...

While we are talking about sed, what would be the "right" way to extract both the "DS Margin" and "DS Line Attenuation" values from this input:

Code:

DS Line Attenuation: 40 DS Margin: 8



So far I have:

Code:

cut -d: -f3 | sed -e "s/ *//"



Which gets me the margin value, but I am stuggling to separate out the attenuation value.
_________________________
Remind me to change my signature to something more interesting someday