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