grep
์ ์ฌ์ฉํ์ฌbzip2
๋ก ์์ถ๋ ํ์ผ์์ ํจํด์ ์ฐพ์. ๋ ๋ง์ ์ ๋ณด: https://manned.org/bzgrep.
bzgrep "{{๊ฒ์_ํจํด}}" {{path/to/file}}
?
, +
, {}
, ()
๋ฐ |
์ง์)์ ์ฌ์ฉ:bzgrep --extended-regexp --ignore-case "{{๊ฒ์_ํจํด}}" {{๊ฒฝ๋ก/๋์/ํ์ผ}}
bzgrep --{{context|before-context|after-context}}={{3}} "{{๊ฒ์_ํจํด}}" {{๊ฒฝ๋ก/๋์/ํ์ผ}}
bzgrep --with-filename --line-number "{{๊ฒ์_ํจํด}}" {{๊ฒฝ๋ก/๋์/ํ์ผ}}
bzgrep --only-matching "{{๊ฒ์_ํจํด}}" {{๊ฒฝ๋ก/๋์/ํ์ผ}}
bzgrep --recursive "{{๊ฒ์_ํจํด}}" {{๊ฒฝ๋ก/๋์/tar/ํ์ผ}}
stdin
์ผ๋ก ๊ฒ์:cat {{/path/to/bz/compressed/file}} | bzgrep --invert-match "{{๊ฒ์_ํจํด}}"