Skip to content

Commit

Permalink
using -name in sage-grep
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Apr 25, 2023
1 parent 1e291b1 commit 5ced222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/sage-grep
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

cd "$SAGE_SRC"

find sage -print | GREP_OPTIONS= grep -E '.py([xdi])?$' | xargs grep "$@"
find sage -name "*.py" -o -name "*.pyx" -o -name "*.pxi" -o -name "*.pxd" | xargs grep "$@"
2 changes: 1 addition & 1 deletion src/bin/sage-grepdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

cd "$SAGE_DOC"

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

0 comments on commit 5ced222

Please sign in to comment.