강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

zmore로 압축파일의 내용확인 도중에 특정 문자 검색하기

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

zmore로 압축파일의 내용확인 도중에 특정 문자 검색하기

 

 

 

 

 

 

 

more명령어로 일반파일의 내용을 확인하는 도중에 특정문자를 검색하는 방법이 있습니다.

 

 

 

  zmore명령어로 압축파일의 내용을 확인하는 도중에도 특정문자를 검색하는 방법은 more명령어에서 사용하는 방법과 동일합니다.

 

 

 

  zmore 압축파일의 내용을 확인하는 도중에 특정문자를 찾고자 한다면 “/검색할문자열 같이 사용하시면 됩니다.

 

 

 

 

 

             zmore에서 문자검색방법 :  /검색할문자열

 

다음 예는 gzip으로 압축된 readme.gz파일을 zmore명령어로 내용을 확인하는 과정에서 “Apache”라는 문자열을 검색하기 위하여 “/License” 입력한 것입니다.

 

 

 

 

 

...... load data into srgb_buffer .......

babl_process (bablfish, srgb_buffer, lab_buffer, pixel_count);

...... do operation in lab space ........

babl_process (babl_fish(lab, srgb),

              lab_buffer, srgb_buffer, pixel_count);

/* the data has now been transformed back to srgb data */

If the existing pixel formats are not sufficient for your conversion

needs, new ones can be created on the fly. The constructor will provide

/License

 

위의 검색결과 하나를 아래화면에 나타낸 것입니다.

 

 

 

 아래 화면의 첫번째 행에 “License”라는 문자열이 검색된 것을 보실 있습니다.

 

 

 

 

 

Free Software Foundation; either version 3 of the License, or (at your option) any later version.

 

Authors

Sven Neumann sven at gimp.org

    Build sanity and optimizations.

Michael Natterer mitch at gimp.org

    Build sanity.

Kevin Cozens

    Build sanity.

Tim Mooney

    Portability fixes.

Michael Schumacher schumaml at cvs.gnome.org

    win32 support for dynamic extensions.

    Portability fixes.

Jan Heller jheller at svn.gnome.org

    Optimizations, refactoring and documentation.

--More--

 

 

또한 상태에서 다음 License라는 문자열을 계속검색하고자 한다면 n 입력하면 됩니다.

 

 

 

  more명령어에서도 다음 문자열 검색을 있는 키가 n이듯이 zmore명령어에서도 다음검색할 문자를 찾기 위하여 n 입력합니다.

 

 

 

 

 

이번 장의예에서 보셨듯이 zmore명령어는 more명령어의 사용방법과 거의 동일함을 있습니다.

 

 

 

 단지 대상파일이 gzip으로 압축된 파일이라는 것만 다를 뿐입니다.

 

 

 

 따라서 책의 more명령어편과 함께 공부하시기 바랍니다.

 

 

 

 

 

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,041 명
  • 현재 강좌수 :  35,855 개
  • 현재 접속자 :  98 명