소스 검색

上传文件至 'lab1'

master
钱凯恒 1 년 전
부모
커밋
bb262b3db4
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. +13
    -0
      lab1/10215501406.sh

+ 13
- 0
lab1/10215501406.sh 파일 보기

@ -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

불러오는 중...
취소
저장