Sfoglia il codice sorgente

Merge pull request '10215501449' (#16) from 10215501449/Computer-Systems-Labs:master into master

Reviewed-on: https://gitea.shuishan.net.cn/52265903006/Computer-Systems-Labs/pulls/16
master
朱君鹏 2 anni fa
parent
commit
61f57d2c53
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. +12
    -0
      lab1/10215501449.sh

+ 12
- 0
lab1/10215501449.sh Vedi File

@ -0,0 +1,12 @@
for ((i=1;i<=100;i++))
>do echo $RANDOM | md5sum | cut -c 1-40 >>test.txt
>done
sort test.txt | uniq -u
sort -n test.txt | uniq -u
sort -n test.txt > test2.txt
sort test.txt > test3.txt
grep -c cc test.txt //因为没有computer字符串所以用cc来代替
grep -n cc test.txt

Caricamento…
Annulla
Salva