Browse Source

上传文件至 'lab1'

master
彭一珅 2 years ago
parent
commit
603eed911d
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      lab1/hw1.sh

+ 11
- 0
lab1/hw1.sh View File

@ -0,0 +1,11 @@
sort data.txt | uniq -u
sort -n data.txt | uniq -u
sort data.txt > data2
sort -n data.txt > data3
sort data.txt >> data2
sort -n data.txt >> data3
grep ABC data.txt
grep -o ABC data.txt
grep ABC data.txt | wc -l
grep -o ABC data.txt | wc

Loading…
Cancel
Save