seq 10 >a xargs -n1|diff a -|sed s/d.*//\;q