Add rcgrep for searching init.rc style files.
Change-Id: Iece26217a7c59c7b2fd1bf19a7edccbe4be92947
This commit is contained in:
parent
aa438dc4cf
commit
ea0068a2ee
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue