Pārlūkot izejas kodu

Merge pull request 'lab1 from 10215501406' (#4) from 10215501406/Computer-Systems-Labs:master into master

Reviewed-on: https://gitea.shuishan.net.cn/52265903006/Computer-Systems-Labs/pulls/4
master
朱君鹏 pirms 2 gadiem
vecāks
revīzija
8488a65502
2 mainītis faili ar 26 papildinājumiem un 0 dzēšanām
  1. +13
    -0
      lab1/10215501406.sh
  2. +13
    -0
      lab1/10215501406.txt

+ 13
- 0
lab1/10215501406.sh Parādīt failu

@ -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_uniq_by_asc.txt
sort -n 1.txt | uniq > 1_uniq_by_num.txt
cat 1_uniq_by_asc.txt | uniq >> 1_uniq_total.txt
cat 1_uniq_by_num.txt | uniq >> 1_uniq_total.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

+ 13
- 0
lab1/10215501406.txt Parādīt failu

@ -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_uniq_by_asc.txt
sort -n 1.txt | uniq > 1_uniq_by_num.txt
cat 1_uniq_by_asc.txt | uniq >> 1_uniq_total.txt
cat 1_uniq_by_num.txt | uniq >> 1_uniq_total.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

Notiek ielāde…
Atcelt
Saglabāt