Is there any software/script that will allow me to cd (change directories) into .jar/.ear/.zip files and edit the contents of the files it contains? I'm working on a large EJB project (yuck), and I frequently find myself in situations like the following:
something.ear/
|-- something.jar/
| `-- fileINeedToEdit.xml
I work primarily via the command line (Mac/Linux), so I find myself decompressing the files with jar -xvf
, editing the file I need to edit, and then recompressing with jar -cvf
. Obviously, this becomes a major headache after the first few times.
I'd like to be able to treat the compressed files as directories, and simply cd
(or some alternate command) to the file I want to edit.
Does anyone know how I can accomplish this?