Procházet zdrojové kódy

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

Reviewed-on: https://gitea.shuishan.net.cn/52265903006/Computer-Systems-Labs/pulls/9
master
朱君鹏 před 1 rokem
rodič
revize
95a6ad57ff
1 změnil soubory, kde provedl 15 přidání a 0 odebrání
  1. +15
    -0
      lab1/10215501415.sh

+ 15
- 0
lab1/10215501415.sh Zobrazit soubor

@ -0,0 +1,15 @@
#两个字符串文件均由python生成
#按数字排序
#覆盖写
cat hw1.txt | sort | uniq -d > 1.txt
cat hw1.txt | sort -n | uniq -d > 1.txt
#追加写
cat hw1.txt | sort | uniq -d >> 2.txt
cat hw1.txt | sort -n | uniq -d >> 2.txt
#找出指定字符串
grep computer hw1-2.txt
grep -c computer hw1-2.txt

Načítá se…
Zrušit
Uložit