You can use braces to create a block which is operated on by an address or set of addresses:
sed -n '/| [0-9]*.[0-9]/ {s/[\t ]//g; s/ | //g; s/kB\/s\((.*)\)<\/td>//g;p}' tmp.txt
I think that you can probably do something tricky with sed's hold and pattern spaces in order to get the second and 4th lines, (I've seen solutions which can undo double-spacing of files this way).
|