dotfiles

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

commit a3c900ea25df6f5a75043a55a3e26b4c483e8c28
parent 5aa30478a76e81de36d13aaa98df095caeca6502
Author: hhvn <dev@hhvn.uk>
Date:   Sat,  1 May 2021 15:48:47 +0100

.s/b/fileoccur: find files containing regex

Diffstat:
A.scripts/bin/fileoccur | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

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