From 1074dc5de462cc80e58d7997e5b6729f7096a7a3 Mon Sep 17 00:00:00 2001
From: lizepeng <1224060318@qq.com>
Date: Sun, 11 Sep 2022 11:44:49 +0800
Subject: [PATCH 1/2] 10215501417's commit

---
 lab1/10215501417.sh | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100644 lab1/10215501417.sh

diff --git a/lab1/10215501417.sh b/lab1/10215501417.sh
new file mode 100644
index 0000000..b22392a
--- /dev/null
+++ b/lab1/10215501417.sh
@@ -0,0 +1,67 @@
+#!/bin/bash
+
+#生成50000行包含字母与数字的文件
+#需要从urandom中读取字母与数字,共50000次循环,大概需要5-10min左右。
+for((i = 0; i < 50000; i++))
+do
+head -c 50 /dev/urandom | tr -dc A-Za-z0-9 >> RandFile;
+echo -e \ >> RandFile;
+done
+
+#按字母排序
+sort RandFile | uniq;      
+#按数字排序
+sort -n RandFile | uniq;
+#重定向到SortedFile1
+sort RandFile | uniq >> SortedFile1;
+#重定向到SortedFile2
+sort -n RandFile >> SortedFile2;
+
+#统计RandFile中 ab 出现的次数
+grep -o ab RandFile|wc -l;
+
+#git push到码园
+git init   #初始化
+git add .  #添加文件夹下所有文件
+git commit -m "lab1 first commit" #把添加的文件提交到远程版本库
+git remote add origin https://gitea.shuishan.net.cn/10215501417/csapp.git  #建立远程连接
+git push -u origin master #上传代码#!/bin/bash
+
+#生成50000行包含字母与数字的文件
+#需要从urandom中读取字母与数字,共50000次循环,大概需要5-10min左右。
+for((i = 0; i < 50000; i++))
+do
+head -c 50 /dev/urandom | tr -dc A-Za-z0-9 >> RandFile;
+echo -e \ >> RandFile;
+done
+
+#按字母排序
+sort RandFile | uniq;      
+#按数字排序
+sort -n RandFile | uniq;
+#重定向到SortedFile1
+sort RandFile | uniq >> SortedFile1;
+#重定向到SortedFile2
+sort -n RandFile >> SortedFile2;
+
+#统计RandFile中 ab 出现的次数
+grep -o ab RandFile|wc -l;
+
+#git push到码园
+git init   #初始化
+git add .  #添加文件夹下所有文件
+git commit -m "lab1 first commit" #把添加的文件提交到远程版本库
+git remote add origin https://gitea.shuishan.net.cn/10215501417/csapp.git  #建立远程连接
+git push -u origin master #上传代码
+
+#fork工作流:
+#首先 fork目标仓库到自己的远程仓库
+#再git clone到自己的仓库
+git clone https://gitea.shuishan.net.cn/10215501417/Computer-Systems-Labs.git
+#创建一个分支
+git checkout -b hw
+#将代码文件上传
+git add 10215501417.sh
+git commit -m "10215501417's cmommit"
+#然后再发起一个pr到目标仓库
+

From 7bd805043cf872f876a153c9b16d98fb76f8a500 Mon Sep 17 00:00:00 2001
From: lizepeng <1224060318@qq.com>
Date: Sun, 11 Sep 2022 11:54:02 +0800
Subject: [PATCH 2/2] 10215501417's commit

---
 lab1/10215501417.sh | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/lab1/10215501417.sh b/lab1/10215501417.sh
index b22392a..10d6392 100644
--- a/lab1/10215501417.sh
+++ b/lab1/10215501417.sh
@@ -25,33 +25,6 @@ git init   #初始化
 git add .  #添加文件夹下所有文件
 git commit -m "lab1 first commit" #把添加的文件提交到远程版本库
 git remote add origin https://gitea.shuishan.net.cn/10215501417/csapp.git  #建立远程连接
-git push -u origin master #上传代码#!/bin/bash
-
-#生成50000行包含字母与数字的文件
-#需要从urandom中读取字母与数字,共50000次循环,大概需要5-10min左右。
-for((i = 0; i < 50000; i++))
-do
-head -c 50 /dev/urandom | tr -dc A-Za-z0-9 >> RandFile;
-echo -e \ >> RandFile;
-done
-
-#按字母排序
-sort RandFile | uniq;      
-#按数字排序
-sort -n RandFile | uniq;
-#重定向到SortedFile1
-sort RandFile | uniq >> SortedFile1;
-#重定向到SortedFile2
-sort -n RandFile >> SortedFile2;
-
-#统计RandFile中 ab 出现的次数
-grep -o ab RandFile|wc -l;
-
-#git push到码园
-git init   #初始化
-git add .  #添加文件夹下所有文件
-git commit -m "lab1 first commit" #把添加的文件提交到远程版本库
-git remote add origin https://gitea.shuishan.net.cn/10215501417/csapp.git  #建立远程连接
 git push -u origin master #上传代码
 
 #fork工作流: