Skip to content

Commit 5ced222

Browse files
committed
using -name in sage-grep
1 parent 1e291b1 commit 5ced222

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/sage-grep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
cd "$SAGE_SRC"
44

5-
find sage -print | GREP_OPTIONS= grep -E '.py([xdi])?$' | xargs grep "$@"
5+
find sage -name "*.py" -o -name "*.pyx" -o -name "*.pxi" -o -name "*.pxd" | xargs grep "$@"

src/bin/sage-grepdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
cd "$SAGE_DOC"
44

5-
find html -print | GREP_OPTIONS= grep -E '.html$' | xargs grep "$@"
5+
find html -name '*.html' | xargs grep "$@"

0 commit comments

Comments
 (0)