From b885f4907514535959ecc7395e4615d5d0b6b6fa Mon Sep 17 00:00:00 2001 From: Amaumia <2571286189@qq.com> Date: Mon, 12 Sep 2022 19:20:59 +0800 Subject: [PATCH] 10215501449 --- lab1/10215501449.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lab1/10215501449.sh diff --git a/lab1/10215501449.sh b/lab1/10215501449.sh new file mode 100644 index 0000000..0a2ba85 --- /dev/null +++ b/lab1/10215501449.sh @@ -0,0 +1,12 @@ +for ((i=1;i<=100;i++)) +>do echo $RANDOM | md5sum | cut -c 1-40 >>test.txt +>done + +sort test.txt | uniq -u +sort -n test.txt | uniq -u + +sort -n test.txt > test2.txt +sort test.txt > test3.txt + +grep -c cc test.txt //因为没有computer字符串所以用cc来代替 +grep -n cc test.txt \ No newline at end of file