Explorar el Código

更新 'lab1/10215501406.txt'

master
钱凯恒 hace 2 años
padre
commit
2e03e33cc0
Se han modificado 1 ficheros con 12 adiciones y 12 borrados
  1. +12
    -12
      lab1/10215501406.txt

+ 12
- 12
lab1/10215501406.txt Ver fichero

@ -1,13 +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
#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

Cargando…
Cancelar
Guardar