안드로이드 envsetup.sh 파일을 참고하여 작성된 function.
아래 파일을 sh 파일로 저장후 cygwin 이나 Linux 환경에서 동작.
". filename.sh" 실행후, functionName string 으로 사용.
function jgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f -name "*\.java" -print0 | xargs -0 grep --color -n "$@"
}
function cgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@"
}
function resgrep()
{
for dir in `find . -name .repo -prune -o -name .git -prune -o -name res -type d`; do find $dir -type f -name '*\.xml' -print0 | xargs -0 grep --color -n "$@"; done;
}
function mangrep()
{
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -type f -name 'AndroidManifest.xml' -print0 | xargs -0 grep --color -n "$@"
}
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 allgrep()
{
find . -name .repo -prune -o -name .git -prune -o -type f \( -name '*.java' -o -name 'AndroidManifest.xml' -o -name '*.xml' -o -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@"
}
피드 구독하기:
댓글 (Atom)
예약 전쟁 끝? 오늘(5월 9일) 바뀐 숲나들e 휴양림 추첨제 방식과 당첨 확률 높이는 법
오늘 바뀐 숲나들e 추첨제 AI 도입과 당첨 확률 높이는 꿀팁! 혹시 매번 '광클'에 실패해서 눈물을 머금고 휴양림 예약을 포기하셨던 경험 있으신가요? 저도 주말마다 숲나들e 페이지에서 무한 로딩과 싸우다 결국 빈손으로 돌아섰던 기억...
-
Custom Annotation 선언 @Retention(용도) @Target(범위) public @interface XXX { ... } 용도 RetentionPolicy.java (java.lang.annotation) /** *...
-
🎯 혼돈의 9·7 부동산 대책: 무엇이 바뀌고 당신에게 미칠 영향은? "이거 하나로 집값 잡힌다"는 말도, "오히려 혼란만 커진다"는 말도 들려오니 솔직히 뭐가 맞는 건지 모르겠다고요? 저도 그랬어요. 갑작스런...
-
IPTV 공유기를 다른방에서 사용시 와이파이 속도가 느린 감이 있어 공유기를 추가 설치 공유기 추가 방법에는 여러가지가 있을수 있겠다. 1. sub 공유기를 WDS 모드로 설정하여 사용 2. sub 공유기를 AP/스위치(허브) 형태로 연결하여 ...
댓글 없음:
댓글 쓰기