从文件列表中获取输入的 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屋!
查看全文