AIX/HPUX - Need to get the last few bytes of a text

Hi guys,

I am in need of a simple, (typically one-liner) script to get the last 17 bytes of a line.

Eg.

echo "abcdefghijklmnopqrstuv"

here i would need the last 17 bytes of the text
ie. fghijklmnopqrstuv

The text length is dymanic (but always more than 17)...it can even span upto 100...

Pls help

Many ways. Here is one

echo "$line" | sed -n "s/.*\(.\{17\}\)$/\1/p"

If you are using bash or ksh93

echo ${line:0-17}