From b8315ca89320b05d4c743a45db3925aa4f774611 Mon Sep 17 00:00:00 2001 From: Kaleido66 <2274170574@qq.com> Date: Fri, 16 Sep 2022 20:37:36 +0800 Subject: [PATCH] hw1 --- lab1/10215501407.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 lab1/10215501407.sh diff --git a/lab1/10215501407.sh b/lab1/10215501407.sh new file mode 100755 index 0000000..edcb571 --- /dev/null +++ b/lab1/10215501407.sh @@ -0,0 +1,5 @@ +#!/bin/bash +sort -t: -k1 -d test.txt|uniq > test_uniq_asc.txt +sort -t: -k2 -n test.txt|uniq > test_uniq_num.txt +grep -o file1.txt |wc +grep -o file1.txt |wc -l