Символы печать от шаблона до шаблона

grep -o '\S*abc\.smart\S*' file | sed 's/"/\\"/g;s/.*/echo "& $(expr length &)"/e'
Paula Villasante Soriano