瀏覽代碼

上传文件至 'lab1'

master
钱凯恒 1 年之前
父節點
當前提交
462cd19f46
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. +13
    -0
      lab1/10215501406.txt

+ 13
- 0
lab1/10215501406.txt 查看文件

@ -0,0 +1,13 @@
#1
for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > 1.txt
sort -d 1.txt | uniq
sort -n 1.txt | uniq
sort -d 1.txt | uniq > 1_uniq1.txt
sort -n 1.txt | uniq > 1_uniq1.txt
sort -d 1.txt | uniq >> 1_uniq2.txt
sort -n 1.txt | uniq >> 1_uniq2.txt
#2
for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done > 2.txt
grep 'computer' 2.txt
grep -o 'computer' 2.txt | wc -l

Loading…
取消
儲存