쉘에서 하위디렉토리에서 특정 문자열 검색후 파일명,라인 출력하기
페이지 정보

본문
vi /usr/sbin/gp
find . -type f | xargs grep -n --color=auto "$1"
chmod 777 /usr/sbin/gp
사용은 gp 문자열...
vi /usr/sbin/gpp
find . -type f -name '*.php' | xargs grep -n --color=auto "$1"
chmod 777 /usr/sbin/gpp
사용은 gpp 문자열... (php 파일만 찾는다)
find . -type f | xargs grep -n --color=auto "$1"
chmod 777 /usr/sbin/gp
사용은 gp 문자열...
vi /usr/sbin/gpp
find . -type f -name '*.php' | xargs grep -n --color=auto "$1"
chmod 777 /usr/sbin/gpp
사용은 gpp 문자열... (php 파일만 찾는다)
- 이전글우분투 Ubuntu 20.04 서버 시간 / 타임존 변경하기 / Timezone 설정 21.07.10
- 다음글우분투 20.04 mysql 암호 정책 변경 / #1819 - Your password does not satisfy the current policy requirements 오류 21.07.06
댓글목록
등록된 댓글이 없습니다.