git diff
diff --git a/lids b/lids
index 009d7e8..46447a8 100644
--- a/lids
+++ b/lids
@@ -1,12 +1,12 @@
-FP CA1 CAPS Mapping.pdf
mtool1428_100squaretool.html
+mtool1428_100squaretool.py
Lesson Guide 100square 23LessonIdeas.pdf
Worksheet 100square 0to99.pdf
Worksheet 100square 1to100.pdf
Worksheet 100square Blank.pdf
-Worksheet 100square Challenge 1.pdf
-Worksheet 100square Challenge 2.pdf
+Worksheet 100square Challenge 11.pdf
Worksheet 100square Challenge 3.pdf
+Worksheet 100square Challenge 2.pdf
Worksheet 100square Challenge 4.pdf
Worksheet 100square Challenge 5.pdf
Worksheet 100square Challenge 6.pdf
如何 grep 以单 - 符号开头的已删除字符串和以单 + 号开头的字符串
如何 grep 以单 - 符号开头的已删除字符串和以单 + 号开头的字符串
你可以使用这个egrep:
grep '^ *[-+][a-zA-Z0-9]'
或者这个:
grep '^ *[-+][[:alnum:]]'
或者这个:
grep '^ *[-+][^-+]'
以下命令
显示每行开头带有"-"或"+"的行,这些行后不跟"-"或"+"
git diff <file> | grep ^[-+][^-+]