Skip to content

Commit

Permalink
notes
Browse files Browse the repository at this point in the history
  • Loading branch information
BostX committed Apr 19, 2024
1 parent 713fa0b commit faf4676
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions notes/cli/find_and_grep.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@
# -w, --word-regexp
# -g, --glob <GLOB>...
# search through all Guix and Guile source code
rg --no-ignore-vcs -g '*.{scm,c,h}' -w "word\\s" $dgx $dev/guile
rg --no-ignore-vcs -g '*.{scm,c,h,sh}' -w "word\\s" $dgx $dev/guile
# -t, --type <TYPE>...
rg --no-ignore-vcs -tlisp -tc -w "word" $dgx $dev/guile
rg --no-ignore-vcs -tlisp -tc -tsh -w "word" $dgx $dev/guile

# search for sexp, see https://docs.rs/regex/1.9.5/regex/#syntax
rg --no-ignore-vcs -tlisp -tc "(['\"\\[\\(\s]|^)load-path(['\"\\]\\)\s]|\$)" $dgx $dev/guile
rg --no-ignore-vcs -g '*.{scm,c,h}' "(['\"\\[\\(\s]|^)load-path(['\"\\]\\)\s]|\$)" (pwd)
rg -g '*.{scm,c,h}' "(['\"\\[\\(\s]|^)x-x(['\"\\]\\)\s]|\$)" $dev/notes/notes/testfile.scrbl
rg --no-ignore-vcs -tlisp -tc -tsh "(['\"\\[\\(\s]|^)load-path(['\"\\]\\)\s]|\$)" $dgx $dev/guile
rg --no-ignore-vcs -g '*.{scm,c,h,sh}' "(['\"\\[\\(\s]|^)load-path(['\"\\]\\)\s]|\$)" (pwd)
rg -g '*.{scm,c,h,sh}' "(['\"\\[\\(\s]|^)x-x(['\"\\]\\)\s]|\$)" $dev/notes/notes/testfile.scrbl
#+END_SRC
}

0 comments on commit faf4676

Please sign in to comment.