sun's longitude:
300 49 38.81
·
자유게시판
·
묻고답하기
·
알파문서
·
RPMS list
·
사용자문서
·
팁/FAQ모음
·
리눅스Links
·
자료실
·
서버정보
·
운영자
·
Books/FAQ
·
FreeBSD
/board/reply.php:소스보기
알파문서
자주 잊어먹거나, 메모해 둘 필요성이 있는 팁이나 문서, 기타 등등
글을 올려주셔서 감사합니다.......................................
san2(at)linuxchannel.net
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
닉네임
닉네임을 적어 주십시오.
이메일
옵션입니다.
홈페이지
홈페이지 URL(http:// 포함)을 적어 주십시오.
암 호
암호를 입력하셔야 수정, 삭제가 가능합니다.
HTML
사용함
사용안함
HTML 코드 사용 여부
제 목
올릴자료
내 용
[산이]님이 남기신 글: >다른 정규표현식과 상당히 헷갈리는 sed >(자주 잊어먹음) > >예) >$ echo 'abc(def)g' | sed 's/^\([^(]\+\)(\([^)]\+\))/\1_\2_/g' >abc_def_g > > >'s/^\([^(]\+\)(\([^)]\+\))/\1_\2_/g' > ^^^^^^^^^^ ^^^^^^^^^^ > abc ( def ) > \1 \2 > >메타문자를 구룹화할 경우 탈출(\) 문자추가 >(다른 정규표현식과 다른점) > > >+ -> \+ -> 문자 집합([class])에 대한 하나 이상 >() -> \(\) -> 그룹화에 사용 -> \1, \2, \3, ... \9 >{} -> \{\} -> 반복범위 지정 >| -> \| -> or 연산 >----------------------- > >^ -> 메타문자, 라인의 시작 >$ -> 메타문자, 라인의 끝 >[] -> 메타문자, 어떤 문자들의 집합, 메타문자로 인식 >\ -> 메타문자, 메타문자를 탈출 >* -> 메타문자, 문자 집합에 대한 0 이상 /*** 주의 ***/ >. -> 메타문자, 어떤 문자든지 매칭 >() -> '('와 ')' 문자, 메타문자로 인식하지 않음 >? -> '?' 문자, 메타문자로 인식하지 않음 > > > >\` - matches the beginning of the pattern space (same as "^") >\' - matches the end of the pattern space (same as "$") >\? - 0 or 1 occurrences of previous character: same as \{0,1\} >\+ - 1 or more occurrences of previous character: same as \{1,\} >\| - matches the string on either side, e.g., foo\|bar >\b - boundary between word and nonword chars (reversible) >\B - boundary between 2 word or between 2 nonword chars >\n - embedded newline (usable after N, G, or similar commands) >\w - any word character: [A-Za-z0-9_] >\W - any nonword char: [^A-Za-z0-9_] >\< - boundary between nonword and word character >\> - boundary between word and nonword character > > >[[:alnum:]] -> [A-Za-z0-9] Alphanumeric characters >[[:alpha:]] -> [A-Za-z] Alphabetic characters >[[:blank:]] -> [ \x09] Space or tab characters only >[[:cntrl:]] -> [\x00-\x19\x7F] Control characters >[[:digit:]] -> [0-9] Numeric characters >[[:graph:]] -> [!-~] Printable and visible characters >[[:lower:]] -> [a-z] Lower-case alphabetic characters >[[:print:]] -> [ -~] Printable (non-Control) characters >[[:punct:]] -> [!-/:-@[-`{-~] Punctuation characters >[[:space:]] -> [ \t\v\f] All whitespace chars >[[:upper:]] -> [A-Z] Upper-case alphabetic characters >[[:xdigit:]] -> [0-9a-fA-F] Hexadecimal digit characters > > >URL >http://www.ptug.org/sed/sedfaq.htm > >EOF ========================================
공용 보안 SSL 서버가 준비되기 전까지는 off 합니다
Copyright 1997-2026. linuxchannel.net. All rights reserved.