This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10215501415
/
Computer-Systems-Labs
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
10215501415
master
龙羿霏
2 years ago
parent
8488a65502
commit
e8e5030504
1 changed files
with
15 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+15
-0
lab1/10215501415.sh
+ 15
- 0
lab1/10215501415.sh
View File
@ -0,0 +1,15 @@
#两个字符串文件均由python生成
#按数字排序
#覆盖写
cat hw1.txt
|
sort
|
uniq -d > 1.txt
cat hw1.txt
|
sort -n
|
uniq -d > 1.txt
#追加写
cat hw1.txt
|
sort
|
uniq -d >> 2.txt
cat hw1.txt
|
sort -n
|
uniq -d >> 2.txt
#找出指定字符串
grep computer hw1-2.txt
grep -c computer hw1-2.txt
Write
Preview
Loading…
Cancel
Save