1/1 페이지 열람 중
Linux grep 사용법 기본 https://www.geeksforgeeks.org/grep-command-in-unixlinux/ Syntax of grep Command in Unix/Linux Options Available in grep Command Pratical Example of grep Command in Linux 1. Case insensitive search 2. Displaying the Count of Number of Matches Using grep 3. Display the File Names t…
How To Use grep Command In Linux / UNIX grep 'word' filename grep 'word' file1 file2 file3 grep 'string1 string2' filename cat otherfile | grep 'something' command | grep 'something' command option1 | grep 'data' grep --color 'data' fileName
grep 사용법 옵션 -c : 패턴이 일치하는 행의 수를 출력 -i : 비교시 대소문자를 구별 안함 -v : 지정한 패턴과 일치하지 않는 행만 출력 -n : 행의 번호를 함께 출력 -l : 패턴이 포함된 파일의 이름을 출력 -w : 패턴이 전체 단어와 일치하는 행만 출력 $ grep '^a' 파일명 = ^는 파일의 시작을 나타냄. 파일에서 a로 시작하는 행을 찾는다. $ grep 'apple$' 파일명 = $는 파일의 끝을 나타냄. 파일에서 e로 끝나는 행을 찾는다. $ grep 'app*'…