📄 00000061.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: reden (鱼 ~ 君子律己以利人), 信区: Linux <BR>标 题: Un-tar as you download <BR>发信站: BBS 水木清华站 (Mon Oct 5 00:04:15 1998) WWW-POST <BR> <BR>Un-tar as you download
<BR>
<BR>Date: Wed, 19 Aug 1998 13:08:52 -0500
<BR>From: <A HREF="mailto:scgmille@indiana.edu">scgmille@indiana.edu</A>
<BR>
<BR>It's time for fun with pipes. Recently, when downloading the latest kernel <BR>over a ridiculously slow connection, I wanted to see
<BR>where the download was by checking which file in the tarball was being <BR>received. After pondering the pipes and GNU utils, this
<BR>thought came to mind.
<BR>
<BR>You can decompress and un-tar your files as they download, sort of a <BR>"streaming decompressor", if you will. From the command
<BR>line:
<BR>
<BR>
<BR>tail -f --bytes=1m file-being-downloaded.tar.gz | tar -zxv
<BR>
<BR>Tail will display downloaded portion of the file, then remain open displaying <BR>bytes as they come. Make sure the 1m (1 megabyte in
<BR>this case) is LARGER than what you have already downloaded. The piped output <BR>of tail goes to tar and the rest is history.
<BR>Similarly, for bz2 files:
<BR>
<BR>
<BR>tail -f --bytes=1m file.tar.bz2 | bunzip2 - | tar -xv
<BR>
<BR>Enjoy! <BR>-- <BR> 白马带著她一步步的回到中原。白马已经老了,只能慢慢的走, <BR>但终是能回到中原的。江南有杨柳、桃花,有燕子、金鱼…… <BR>汉人中有的是英俊勇武的少年,倜傥潇洒的少年……但这个美 <BR>丽的姑娘就像古高昌国人那样固执: <BR> <BR> 「那都是很好很好的,可是我偏不喜欢。」 <BR> <BR>※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 202.99.18.67] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -