Article 5FAJZ Trying to append a file to a tarball through a pipe.

Trying to append a file to a tarball through a pipe.

by
nrmad
from LinuxQuestions.org on (#5FAJZ)
I am trying to execute a simple pipeline which should gunzip a file and send the result to stdout. This is ten piped into a tar command which to my knowledge should append the file I specify. I use a hyphen to denote the stdin decompressed tarball which I am trying to append to.

Code:gunzip -c sandbox.tgz | tar rvf - hongkong.mp4I receive the following response when I execute the command

Code:tar: Options '-Aru' are incompatible with '-f -'Thankslatest?d=yIl2AUoC8zA latest?i=8hvPmBZ5xVk:qO4g9IzdhzM:F7zBnMy latest?i=8hvPmBZ5xVk:qO4g9IzdhzM:V_sGLiP latest?d=qj6IDK7rITs latest?i=8hvPmBZ5xVk:qO4g9IzdhzM:gIN9vFw8hvPmBZ5xVk
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments