123a54 54a343 993a3932 38a2
이 아래처럼 되도록. 즉 a라는 특정 문자 이후의 값을 잘라내려면 어떻게 해야 하나요?
123 54 993 38
$ cat in.txt 123a54 54a343 993a3932 38a2 $ cat in.txt | sed 's/a.*//g' 123 54 993 38 $ cat in.txt | while read -r line; do echo ${line%a*}; done 123 54 993 38 $ cat in.txt | cut -d a -f 1 123 54 993 38
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
.
텍스트 포맷에 대한 자세한 정보
<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]
음 ..
되면 한다! / feel no sorrow, feel no pain, feel no hurt, there's nothing gained.. only love will then remain.. 『 Mizz 』
감사합니다.ㅎㅎ
.
댓글 달기