2011/7/8 Nguyen Vu Hung (VNC) <[email protected]>: > Up nha. https://github.com/htruong/lz4
$ git clone [email protected]:htruong/lz4.git $ make $ sudo make install Em đã dùng một cái quick hack để lz4 command line nó dùng được pipe, nếu chỉ định infile là std nó sẽ đọc infile -> stdin, tương tự với stdout. Nội dung các file sh: (Lưu ý: Cái tar-none sẽ có lợi thế hơn nhiều vì nó không phải qua 2 đợt pipe.) $ cat tar-gzip.sh #!/bin/bash tar -cf - ${1} | gzip > ${2}.tar.gz $ cat tar-lz4.sh #!/bin/bash tar -cf - ${1} | ./lz4 -c std std > ${2}.tar.lz4 $ cat tar-none.sh #!/bin/bash tar -cf ${2}.tar ${1} _______________________________________________ POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines _______________________________________________ HanoiLUG mailing lists: http://lists.hanoilug.org/ HanoiLUG wiki: http://wiki.hanoilug.org/ HanoiLUG blog: http://blog.hanoilug.org/
