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
How to grep deleted strings starting with a single - sign and string starting with single + sign
How to grep deleted strings starting with a single - sign and string starting with single + sign
You can use this egrep:
grep '^ *[-+][a-zA-Z0-9]'
OR this:
grep '^ *[-+][[:alnum:]]'
OR this:
grep '^ *[-+][^-+]'
以下命令显示每行开头的“ - ”或“+”行,后面没有“ - ”或“+”
git diff <file> | grep ^[-+][^-+]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.