#!/bin/bash KeyA=`ots --about $1 | cut -f2 -d'"' | sed -e 's/\,/ /g'` KeyB=`ots --about $2 | cut -f2 -d'"' | sed -e 's/\,/ /g'` C=0; for wordA in $KeyA; do for wordB in $KeyB; do if [ $wordA = $wordB ]; then let C=C+1; fi done done echo '<'$1,$2'>'= $C