You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more
Can I use tar (or actually jar in this case) to extract a file from an archive and then pipe it directly to sed without having to create a temporary file?
I want to fish a string out of a file in an archive, inside a script.
Ah it's ok, got it. Use unzip instead of jar, so you can use -p to output the file to STDOUT instead of writing it to disk.
If it was a tar file and I wanted to find a string inside it I would just use zgrep and then pipe it from there, I'm guessing you could try the same with the jar?
Molgrips, amazing how the brain and eye work. When was quickly skimming the subjects in this forum I thought yours was unisex hell, help. Imagine my disappointment.
Most disappointing mis-read ever.
As background, molgrips, jar and tar are not related. tar is a UNIX command but jar is one supplied only for java.
Actually, jar is much more like zip than tar.
Rachel
Yea I know.. hence use of unzip in the actual solution.