diff --git a/notes/cli/find_and_grep.scrbl b/notes/cli/find_and_grep.scrbl index 1aa3c4e..1a78c05 100644 --- a/notes/cli/find_and_grep.scrbl +++ b/notes/cli/find_and_grep.scrbl @@ -229,13 +229,13 @@ # -w, --word-regexp # -g, --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 ... - 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 }