commit 42e04cc94a5b70928104dea67b27fd13feddc332 parent 6fbdb30295771706a1a4fd8e451394600a69992b Author: GeaRSiX <gearsix@tuta.io> Date: Mon, 9 Aug 2021 16:56:54 +0100 renamed gfind -> grepf (found gnu find named gfind on a system) Diffstat:
D | src/gfind.sh | | | 15 | --------------- |
A | src/grepf.sh | | | 15 | +++++++++++++++ |
2 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/src/gfind.sh b/src/gfind.sh @@ -1,15 +0,0 @@ -#!/bin/sh -# gfind (grep find) -# description: find files containing string $2 in directory/file $1 -# dependencies: grep -# e.g.$ gfind dogs/ "shades" - -if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then - echo "Usage: gfind DIRECTORY EXPRESSION" - echo "" - echo "call grep EXPRESSION on all files in DIRECTORY" - exit -fi - -grep -rnw $1 -e "$2" - diff --git a/src/grepf.sh b/src/grepf.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# grepf (grep find) +# description: find files containing string $2 in directory/file $1 +# dependencies: grep +# e.g.$ grepf dogs/ "shades" + +if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then + echo "Usage: grepf DIRECTORY EXPRESSION" + echo "" + echo "call grep EXPRESSION on all files in DIRECTORY" + exit +fi + +grep -rnw $1 -e "$2" +