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