From 5549a6d0c62c89e7820e6e3e345604bff3255a58 Mon Sep 17 00:00:00 2001 From: 10215501406 <10215501406@stu.ecnu.edu.cn> Date: Mon, 12 Sep 2022 20:08:00 +0800 Subject: [PATCH] modify 10215501406.sh --- lab1/10215501406.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lab1/10215501406.sh b/lab1/10215501406.sh index a50d518..e3f1f24 100644 --- a/lab1/10215501406.sh +++ b/lab1/10215501406.sh @@ -4,10 +4,10 @@ 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 +1_uniq_by_asc.txt >> 1_uniq_total.txt +1_uniq_by_num.txt >> 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 \ No newline at end of file +grep -o 'computer' 2.txt | wc -l