From faf46767521413e536e711be3db2dcdee56d8b63 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Fri, 19 Apr 2024 17:05:32 +0200 Subject: [PATCH] notes --- notes/cli/find_and_grep.scrbl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 }