From e903330dca17731fcc5e68751dd06701fb67c677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=AA=E8=B4=9D=E8=B4=9D?= <10215501418@stu.ecnu.edu.cn> Date: Mon, 12 Sep 2022 15:57:59 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'10215501418.txt/.keep?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 10215501418.txt/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 10215501418.txt/.keep diff --git a/10215501418.txt/.keep b/10215501418.txt/.keep new file mode 100644 index 0000000..e69de29 From 8178347bab052089093562b4c95db3b969e77405 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=AA=E8=B4=9D=E8=B4=9D?= <10215501418@stu.ecnu.edu.cn> Date: Mon, 12 Sep 2022 16:02:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'10215501418.txt'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 10215501418.txt/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 10215501418.txt/.keep diff --git a/10215501418.txt/.keep b/10215501418.txt/.keep deleted file mode 100644 index e69de29..0000000 From 370fe5aae4ab2915d5278b0d04f26691634f6bf7 Mon Sep 17 00:00:00 2001 From: 10215501418 <3012424413@qq.com> Date: Mon, 12 Sep 2022 18:18:54 +0800 Subject: [PATCH 3/3] homework1 --- lab1/10215501418.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lab1/10215501418.sh diff --git a/lab1/10215501418.sh b/lab1/10215501418.sh new file mode 100644 index 0000000..2b7ace5 --- /dev/null +++ b/lab1/10215501418.sh @@ -0,0 +1,10 @@ +python 1.py > 1.1.txt +sort -d 1.1.txt > 1.2.txt --unique +sort --numeric-sort 1.1.txt > 1.2.txt --unique +sort -d 1.1.txt >> 1.3.txt --unique +sort --numeric-sort 1.1.txt >> 1.3.txt --unique + + +python 2.py > 2.txt +grep "computer" 2.txt +grep -c "computer" 2.txt \ No newline at end of file