#!/bin/bash for i in {1..1000}; do echo $RANDOM|md5sum|cut -c 1-9 ; done >> data; sort data|uniq; sort -n data|uniq; sort -n data|uniq > data1; sort -n data|uniq >> data2; grep -o "aa" data1|wc -l;