于 2010年08月05日 19:46, User 写道:
> 
> 
> 2010-08-05(Thursday) 19:22:09 +0800, Quinn Li<[email protected]>:
> 
>> 可以用xargs组合
>>
>> ls *.tar.gz | xargs -n 1 tar xzf
> 
> 
>   多谢您的好办法。真的想不通为何 tar 不能同时操作多个文件。
> 
> 
> 
因为tar支持从tar ball里选择性的抽取文件,e.g.:
tar zxf foo.tar.gz bar.txt  # 抽取 foo.tar.gz 中的 bar.txt


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

回复