exclude characters in echo command please help

Hi all,
I wrote one code and i face some difficulties to exclude some characters from the echo command

more specifically the last command is

echo $a "${RESULT}" >> results_data_srcip

the results which i have taken are:

nfcapd.200908250000 -.352228
nfcapd.200908250005 -.345085

from these results I want to exclude the characters " nfcapd.20090825 " from the echo command. Does anyone know how to do this? Please i need your help :frowning:

This will leave out the whole line:

echo ... | grep -v nfcapd.20090825 >> outfile

If only the pattern should be excluded:

echo ... | sed 's/nfcapd.20090825//g' >> outfile

Thank you very much for your help!! it works :slight_smile:

No need to use sed

echo ${a:16} "${RESULT}" >> results_data_srcip

can you explain to me please what does it mean this command ${a:16} ? because i'm new in shell script :frowning:

thanks very much also for your help