using tar in a pipeline, extra a file from the tar and send that files contents along in the pipe
Posted on 2011-02-18
I have a pipeline, in it, are a lot of tar files that are cat'ed together. I need a step in the pipeline that reads these concatenated tar files and writes to stdout the contents of a single file from each.
Each tar in the pipe contains several logs from one day. (several tar / days are cat'ed together) I need to extract only one log from each tar and send it along in the pipe
Any thoughts on the best / easiest way to do this?