From fce022d70fbb1d5d218b89b9da82cddc040d32bb Mon Sep 17 00:00:00 2001
From: ys554 <ys554@cs.drexel.edu>
Date: Wed, 23 Jan 2019 11:14:32 -0500
Subject: [PATCH] lab 2 sheet

---
 lab02/lab2 | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 lab02/lab2

diff --git a/lab02/lab2 b/lab02/lab2
new file mode 100644
index 0000000..ed0b3f6
--- /dev/null
+++ b/lab02/lab2
@@ -0,0 +1,55 @@
+Q1.
+
+./ys554-cs265-winter2019/lab02/heidi.list
+./ys554-cs265-winter2019/lab02/eg.bash
+./ys554-cs265-winter2019/.git/index
+./ys554-cs265-winter2019/.git/objects/59/8394fe6d659069490a786c17ec32c7d55fe91a
+./ys554-cs265-winter2019/.git/objects/4e/2ab0f310ca16208a85f5f11b8e621ecaefe7fa
+./ys554-cs265-winter2019/.git/objects/71/ba0f6877fcdf5a3c675ca625aeb11b5aaf595d
+./ys554-cs265-winter2019/.git/objects/ec/c6cbf85f474bc4279ca034aa3055dcd3315862
+./ys554-cs265-winter2019/.git/objects/0c/9adffbbdab8e1cd589aa618e6afb4be49eb74a
+./ys554-cs265-winter2019/.git/COMMIT_EDITMSG
+./ys554-cs265-winter2019/.git/logs/HEAD
+./ys554-cs265-winter2019/.git/logs/refs/heads/master
+./ys554-cs265-winter2019/.git/logs/refs/remotes/origin/master
+./ys554-cs265-winter2019/.git/refs/heads/master
+./ys554-cs265-winter2019/.git/refs/remotes/origin/master
+./ys554-cs265-winter2019/lab01/lab1
+
+Q2.
+
+find ./ -name *.bash
+
+Q3.
+
+./CS265/ys554-cs265-winter2019/lab02/tmp/gotMe.bash
+./CS265/ys554-cs265-winter2019/lab02/eg.bash
+
+Q4.
+
+  97  499 2960 breadIsDangerous.txt, meaning the file has 97 lines, 499 words, and 2960 bytes.
+
+Q5. grep the breadIsDangerous.txt | wc -l
+
+Q6. The color of the title change from black to green. I also got a new file called spellExample.bak
+
+Q7. It first shows a revised version of spellExample file and compares to the old file which is stored in spellExample.bak
+
+Q8. Nothing happens.
+
+Q9. du * | sort -n -r | head -n 8
+
+Q10. After the first command, %? will print 0("success" return value) because the string "dough" is in the text file. However, the second command will throw false, since there is no string called "uniqueString" in the file. Therefore, the value of $? will be 1. After the third command, which also doesn't exist, $? will adain throw 1, which will make the overall value 2.  
+
+Q11.1. 
+
+** NOTE 
+When I tried `git push --set-upstream origin master` on lab2-git directory, I got an error message saying:
+
+error: src refspec master does not match any.
+error: failed to push some refs to '/home/ys554/CS265/lab2-git-bare/'
+
+However, to recover my answers, I would use git revert command. 
+
+Q11.2. Maybe I can check the version and see if there were previous versions..? Not 100% sure.
+
-- 
GitLab