Extracting latency value from output of ping
There are probably hundred of ways to accomplish this with standard Unix tools. To list just some of them:
# extending what you have
ping -c 1 206.190.36.45 | awk -F&quot; |=&quot; '/time/{print $10&quot;ms YH&quot;}' | sed -e 's/\..*ms/ms/

# using awk only
ping -c 1 206.190.36.45 | awk -F&quot; |=&quot; '/time/{printf &quot;%i%s\n&quot;, $10, &quot;ms YH&quot;}'

# using sed instead
ping -c 1 206.190.36.45 | sed -n 's/.*time=\(.*\)\..*/\1ms YH/p'

# a rather different approach (just for the fun of it, not really recommended)
echo &quot;$(ping -c 1 206.190.36.45 | fgrep time= | cut -d= -f 4 | cut -d. -f 1)ms YH&quot;