안녕하세요~
궁금한 것이 있어 질문 드립니다.
예를들어서 test.txt 라는 파일이
123 456 789 101112 ....
이런식으로 되어있다면, 이것을
1234567891011121314....
이런식으로 한 줄로 만들고 싶습니다. 어떻게 해야 할까요?? 답변 부탁드리겠습니다.
awk '{printf $1}' test.txt
cat a.txt | tr -d '\n'
텍스트 포맷에 대한 자세한 정보
<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]
[code:1]awk '{printf $1}' test
awk '{printf $1}' test.txt
[code:1]cat a.txt | tr -d '\n'[/code:1]
cat a.txt | tr -d '\n'
댓글 달기