Skip to content

Stdbuf

버퍼링 없이 stdout redirect

Example

stdbuf -i0 -o0 -e0 time python analysis.py | tee output.log 

이렇게 하면 pipe 의 buffer가 0 이 되면서 바로바로 output 이 찍힌다.

Text Processing Commands

텍스트 처리 명령어 목록

Text

Common

grep, sed, awk, cat, xargs, rev, tee, ack, tr, stdbuf

Diff

diff, patch

Cutting

cut, head, tail, less, more, split, watch

Sort

uniq, sort

Hash

base64, md5sum, sha1sum, sha224sum, sha256sum, sha384sum, sha512sum

Clipboard

clip (Windows), pbcopy (Mac OSX), pbpaste (Mac OSX), xclip (Debian)

E.T.C

regexp, parallel

Favorite site