李睿恩的仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
429 B

  1. #1
  2. for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > 1.txt
  3. sort -d 1.txt | uniq
  4. sort -n 1.txt | uniq
  5. sort -d 1.txt | uniq > 1_uniq_by_asc.txt
  6. sort -n 1.txt | uniq > 1_uniq_by_num.txt
  7. cat 1_uniq_by_asc.txt | uniq >> 1_uniq_total.txt
  8. cat 1_uniq_by_num.txt | uniq >> 1_uniq_total.txt
  9. #2
  10. for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > 2.txt
  11. grep 'computer' 2.txt
  12. grep -o 'computer' 2.txt | wc -l