[SED] Parsing to get a single value

Hello guys,

I guess you are fed up with sed command and parse questions, but after a while researching the forum, I could not get an answer to my doubt. I know it must be easy done with sed command, but unfortunately, I never get right syntax of this command

OK, this is what I have in my script:

stats=`$path_ds_ex/dsjob -linkinfo $proyecto $job $stage_IN $link_IN`

If I perform an echo over stats variable, this is what is shown:

What I need to obtain is the value marked in bold-red

I tried the following, but did not work:

numfilas=`echo $stats | sed 's/.*Link Row Count :\([^ ]*\).*/\1/' `

Thanks very much for your help

sed 's/.* : \([0-9]\+\) .*/\1/'
# or
sed 's/^Link Row Count : \([0-9]\+\) .*/\1/'
# or
cut -d" " -f5

@OP: In your

sed 's/.*Link Row Count :\([^ ]*\).*/\1/'

You left out a space after the :

sed 's/.*Link Row Count : \([^ ]*\).*/\1/'

Arrghhh!!! What a lot of time wasted just because of a blank space! :wall:

In any case, thanks very much guys for your so fast help, this forum RULES!!!