Created
March 23, 2012 02:58
-
-
Save outsideris/2166377 to your computer and use it in GitHub Desktop.
sed usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -n '/패턴/p' # 패턴의 라인만 출력 | |
sed 's/패턴/치환문자/g' # 문자열 바꾸기 | |
#정규식 | |
\n # new line | |
\+ # 1개 이상 | |
\{n\} # n개이상 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment