TL; DR
보다 일관된 결과를 얻기 보다는 paste/ 조합을 사용하는 column것이 좋습니다 pr.
체재:
paste <(cmd1) <(cmd2) | column -s $'\t' -t
상해
paste및 column명령 의 조합을 통해 매우 강력한 솔루션이 가능 합니다.
paste/ column접근 방식의 장점 pr:
구체적인 예 :
paste <(ls -1 .) <(ls -1 ..) | column -s $'\t' -t
Ubuntu 16.04 의 실제 출력 paste/ column기술 :
jay-z@jaytaylor.com:~/go/src/github.com/jaytaylor/html2text
$ paste <(ls -1 .) <(ls -1 ..) | column -s $'\t' -t
LICENSE archiveify
README.md go-hostsfile
html2text.go html2text
html2text_test.go jaytaylor
testdata mockery-example
shipbuilder
stoppableListener
tesseract-web
비교를 위해 : pr다양한 플랫폼에서
TL; DR : pr Linux 환경에서 동작이 일치하지 않습니다.
우분투pr 버전의 출력 :
jay-z@jaytaylor.com:~/go/src/github.com/jaytaylor/html2text
$ pr -m <(ls -1 .) <(ls -1 ..)
2017-05-25 15:50 /dev/fd/62 Page 1
LICENSE archiveify
README.md go-hostsfile
html2text.go html2text
html2text_test.go jaytaylor
testdata mockery-example
shipbuilder
stoppableListener
tesseract-web
OS X / macOspr 버전 출력 :
jay-z@jaytaylor.com:~/go/src/github.com/jaytaylor/html2text
$ pr -m <(ls -1 .) <(ls -1 ..)
May 25 08:55 2017 Page 1
LICENSE archiveify
README.md go-hostsfile
html2text.go html2text
html2text_test.go jaytaylor
testdata mockery-example
shipbuilder
stoppableListener
tesseract-web
<... remainder of screen filled with blank lines ...>
Centos 의 pr버전 출력 :
(놀랍게도 prCentos 7 의 동작은 테스트 된 다른 모든 플랫폼 의 동작 과 다릅니다)
jay-z@jaytaylor.com:~/go/src/github.com/jaytaylor/html2text
$ pr <(ls -1 .) <(ls -1 ..)
2017-05-25 15:59 /dev/fd/63 Page 1
LICENSE
README.md
html2text.go
html2text_test.go
testdata
<... remainder of screen filled with blank lines ...>
2017-05-25 16:21 /dev/fd/62 Page 1
archiveify
go-hostsfile
html2text
jaytaylor
mockery-example
shipbuilder
stoppableListener
tesseract-web
<... remainder of screen filled with blank lines ...>
pr -m사용할 수 있습니다paste.