Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd67cdce authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Add rcgrep for searching init.rc style files."

parents c894e099 ea0068a2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1102,6 +1102,11 @@ function sepgrep()
    find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -name sepolicy -type d -print0 | xargs -0 grep --color -n -r --exclude-dir=\.git "$@"
}

function rcgrep()
{
    find . -name .repo -prune -o -name .git -prune -o -name out -prune -o -type f -name "*\.rc*" -print0 | xargs -0 grep --color -n "$@"
}

case `uname -s` in
    Darwin)
        function mgrep()