如何grep“U+2028”?

kev*_*kev 5 git unicode diff

git diff向我展示了我的代码中的一些内容:

                     <div style={styles.loadingContainer}><U+2028>
                         <CircularProgress />
-                    </div><U+2028>
+                    </div>
Run Code Online (Sandbox Code Playgroud)

我想 grep 所有文件来查找并删除它们。他们搞砸了设计,到目前为止花了我 3 个小时:-(

the*_*472 2

假设您使用的是 bash,您可以使用它的字符串替换

grep $'\u2028' /path/to/file
Run Code Online (Sandbox Code Playgroud)

其他 shell 可能具有类似的功能。