dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 18113c85b0e53eec4420c475ea860525cfed2719
parent 3f4547e3e9216926c86c8ebd137f9d27343fc2a1
Author: hhvn <dev@hhvn.uk>
Date:   Sun,  2 May 2021 15:27:08 +0100

.s/b/fileoccur: look in . by default, pass args to grep

Diffstat:
M.scripts/bin/fileoccur | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.scripts/bin/fileoccur b/.scripts/bin/fileoccur @@ -1,4 +1,3 @@ #!/bin/sh -# output list of files containing $1 -grep "$1" -R "${2:-.}" 2>&1 | grep -Ev '\.git|^grep' | grep -o '[^:]*:' | sed 's/:$//' | uniq +grep "$@" -R . 2>&1 | grep -Ev '\.git|^grep' | grep -o '[^:]*:' | sed 's/:$//' | uniq