read line1 read line2 echo "$line1$line2" | egrep -E -o 'o+' | sort -r | head -1 | awk 'BEGIN{len=0}{len=length($0)}END{print len}'