포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 20MB 입니다.

#!/bin/sh

if [ $# = 1 ]
then
        dir=.
else if [ $# = 2 ]
then
        dir=$2
else
        echo "USAGE: gref patten [path]"
        exit 1
fi
fi

find $dir -type f -exec grep -l "$1" {} ;
   -exec grep -n "$1" {} ;
   -exec echo " " ;

============

커널에서 스트링 서칭할때 많이 사용하는 녀석입니다.

gref  "찾고자하는 string"을 넣어주면 됩니다.

 
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
13 GIT 사용법 (ProGIT) - 2.3. 위탁 이력의 열람 file [1] JhoonKim 2010-02-03 13308
12 GIT 사용법 (ProGIT) - 2.4. 작업의 취소 [1] JhoonKim 2010-02-03 15113
11 GIT 사용법 (ProGIT) - 2.5. 원격 저장소의 사용 방법 [2] JhoonKim 2010-02-04 16061
10 GIT 사용법 (ProGIT) - 2.6. 태그(TAGS) 붙이기 [2] JhoonKim 2010-02-09 15136
9 oss를 이용한 read, write, read/write program file [2] 고도리 2011-01-25 10531
8 ffmpeg x86 compile & cross compile howto file 고도리 2011-08-05 7832
7 Linux application에서의 clock과 system timer설정 고도리 2011-08-15 7383
6 ffmpeg을 이용한 camera 영상 저장 file [1] 고도리 2012-05-01 5892
5 dropbear ssh daemon 포팅하기 [1] 고도리 2012-06-30 5847
4 i2c scan하는 코드입니다. 고도리 2012-07-27 5322
3 apache-1.3.33 arm porting by tssuk [3] 고도리 2013-05-21 3336
2 Yocto zynq howto - 예전자료 고도리 2019-08-24 284
1 Yocto project 소개자료 [2] 고도리 2019-08-24 897

사용자 로그인