Browse Source

hw1

master
王瑞彬 1 year ago
parent
commit
b8315ca893
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      lab1/10215501407.sh

+ 5
- 0
lab1/10215501407.sh View File

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

Loading…
Cancel
Save