I've just finished writing a shell script that searches for a string recursively in all text files and replace them with another string. Now, all these files come from a location nested deep within some TAR files which are inside another mother TAR.
To make my script work, we had been UNTARing all these TAR files, running the search/replace, then TARing them back. How do I automate this step too by a shell script?
Well, a couple of tar lines, for each nested TAR file. Once everything is extracted, we run our script. Once it replaces everything, we put back everything into TARs.