Tar存档,可从文件列表中获取输入 [英] Tar archiving that takes input from a list of files
本文介绍了Tar存档,可从文件列表中获取输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个文件,其中包含要使用tar存档的文件列表.
我们称之为mylist.txt
I have a file that contain list of files I want to archive with tar.
Let's call it mylist.txt
它包含:
file1.txt
file2.txt
...
file10.txt
有没有一种方法可以发出以mylist.txt
作为输入的TAR命令?
像
Is there a way I can issue TAR command that takes mylist.txt
as input?
Something like
tar -cvf allfiles.tar -[someoption?] mylist.txt
类似于我发出以下命令:
So that it is similar as if I issue this command:
tar -cvf allfiles.tar file1.txt file2.txt file10.txt
推荐答案
是:
tar -cvf allfiles.tar -T mylist.txt
这篇关于Tar存档,可从文件列表中获取输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文