How can I build a tar from stdin?

后端 未结 6 912
攒了一身酷
攒了一身酷 2020-12-04 16:20

How can I pipe information into tar specifying the names of the file?

6条回答
  •  孤城傲影
    2020-12-04 16:59

    The tar program has been implemented in a variety of ways. For example, on IBM's version of Unix, AIX, tar uses the -L option rather than -T, and requires a file rather than allowing - to indicate stdin:

    Usage: tar -{c|r|t|u|x} [ -BdDEFhilmopRUsvwZ ] [ -Number ] [ -f TarFil e ]
           [ -b Blocks ] [ -S [ Feet ] | [ Feet@Density ] | [ Blocksb ] ]
           [ -L InputList ] [-X ExcludeFile] [ -N Blocks ] [ -C Directory ] File ...
    Usage: tar {c|r|t|u|x} [ bBdDEfFhilLXmNopRsSUvwZ[0-9] ] ]
           [ Blocks ] [ TarFile ] [ InputList ] [ ExcludeFile ]
           [ [ Feet ] | [ Feet@Density ] | [ Blocksb ] ] [-C Directory ] File ...
    

提交回复
热议问题