From 976e3c32bea5a1e6e07cd300e6a9cd934f7f5146 Mon Sep 17 00:00:00 2001 From: 10215501433 <10215501433@stu.ecnu.edu.cn> Date: Mon, 12 Sep 2022 20:24:43 +0800 Subject: [PATCH 1/4] add 10215501433.sh --- lab1/10215501433.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 lab1/10215501433.sh diff --git a/lab1/10215501433.sh b/lab1/10215501433.sh new file mode 100644 index 0000000..e69de29 From 4f395686c18a2e920a03c0bea3e59c851fe866dc Mon Sep 17 00:00:00 2001 From: 10215501433 <10215501433@stu.ecnu.edu.cn> Date: Mon, 12 Sep 2022 21:55:57 +0800 Subject: [PATCH 2/4] add 10215501433 lab1 homework --- lab1/10215501433.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lab1/10215501433.sh b/lab1/10215501433.sh index e69de29..31cbb6a 100644 --- a/lab1/10215501433.sh +++ b/lab1/10215501433.sh @@ -0,0 +1,12 @@ +#!/bin/bash +for i in `seq 1000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> random1000.txt +#以覆盖写的方式,字母排序,输出unique行 +sort -u random1000.txt > alph +#以覆盖写的方式,数字排序,输出unique行 +sort -u -n random1000.txt > num +#以追加写的方式,字母排序,输出unique行 +sort -u random1000.txt >> alph +#以追加写的方式,数字排序,输出unique行 +sort -u -n random1000.txt >> num +#继续在里面查找coumputer +grep -c "Computer" random1000 From fad35741602a3477cc481c1ec0d5bdbbe03ad3d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=B2=E9=9F=A6=E8=90=B1?= <10215501433@stu.ecnu.edu.cn> Date: Mon, 12 Sep 2022 22:18:42 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'10215501451.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 10215501451.md | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 10215501451.md diff --git a/10215501451.md b/10215501451.md deleted file mode 100644 index 104f684..0000000 --- a/10215501451.md +++ /dev/null @@ -1,21 +0,0 @@ -touch text1.txt - -for i in `seq 50000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> text1.txt - -export LC_ALL=C - -sort text1.txt | uniq - -sort -n text1.txt | uniq - -sort text1.txt | uniq > letter.txt - -sort -n text1.txt | uniq >> number.txt - - - -echo -e "computer\ndata\nscience\nengineering\nscience\nengineeringc\ncomputer\ncomputer\necnu\ndata" > text2.txt - -grep computer text2.txt - -grep -c computer text2.txt \ No newline at end of file From 1a25af6dcd31024a98c7d59b39deef5b7b0c9f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=B2=E9=9F=A6=E8=90=B1?= <10215501433@stu.ecnu.edu.cn> Date: Mon, 12 Sep 2022 22:21:15 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'lab1/10215501433.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab1/10215501433.sh | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 lab1/10215501433.sh diff --git a/lab1/10215501433.sh b/lab1/10215501433.sh deleted file mode 100644 index 31cbb6a..0000000 --- a/lab1/10215501433.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -for i in `seq 1000`;do echo $RANDOM | md5sum | cut -c 1-9 ;done >> random1000.txt -#以覆盖写的方式,字母排序,输出unique行 -sort -u random1000.txt > alph -#以覆盖写的方式,数字排序,输出unique行 -sort -u -n random1000.txt > num -#以追加写的方式,字母排序,输出unique行 -sort -u random1000.txt >> alph -#以追加写的方式,数字排序,输出unique行 -sort -u -n random1000.txt >> num -#继续在里面查找coumputer -grep -c "Computer" random1000