안녕하세요...
쉘스크립트 작성하다가 막혀서 올립니다 ㅜㅜ..
내용은 로그파일인데요
라인내에 () <-괄호 안에 들어있는 내용을지우고싶습니다...
(ㄴㄹㄴㅇㄹㄴㅇㄹㄴ) 괄호까지 모두 괄호+내용까지 지우고싶은데요...
아 이게 정말 않되네요 ㅜㅜ.. 치환하는 쉘작성 여러가지 많이짰는데 이거는 막혀서 도저히 안되서 올립니다...
sed /s/(*)//g/ 뭐 요런거? ㅋㅋ ()안에 모든(*) 걸 ....ㅜㅜㅜㅜㅜㅜ안되더라구요 ㅜㅜ
sed 's/(.*)//g' 해보세요. ---- Let's shut up and code.
---- Let's shut up and code.
되네요 ㅜ. .ㅋㅋ
감사합니다~
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
이런식으론 안되는가요?;;
sed /s/(*)//g/ 뭐 요런거? ㅋㅋ ()안에 모든(*) 걸 ....ㅜㅜㅜㅜㅜㅜ안되더라구요 ㅜㅜ
sed
sed 's/(.*)//g'
해보세요.
----
Let's shut up and code.
----
Let's shut up and code.
아 정말감사합니다~..
되네요 ㅜ. .ㅋㅋ
감사합니다~
댓글 달기