<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=7zip_Extract_Encrypted_files</id>
	<title>7zip Extract Encrypted files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=7zip_Extract_Encrypted_files"/>
	<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=7zip_Extract_Encrypted_files&amp;action=history"/>
	<updated>2026-05-06T15:59:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.1701technology.com/index.php?title=7zip_Extract_Encrypted_files&amp;diff=121&amp;oldid=prev</id>
		<title>Michael.mast: Created page with &quot;I had a very large number of encrypted zip files created using 7zip. These needed to be decrypted so I wrote out the following script to run while I did more important things....&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=7zip_Extract_Encrypted_files&amp;diff=121&amp;oldid=prev"/>
		<updated>2016-07-22T14:12:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;I had a very large number of encrypted zip files created using 7zip. These needed to be decrypted so I wrote out the following script to run while I did more important things....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I had a very large number of encrypted zip files created using 7zip. These needed to be decrypted so I wrote out the following script to run while I did more important things.&amp;lt;br&amp;gt;&lt;br /&gt;
The key is that you know the file structure inside your archives. For me this was&lt;br /&gt;
#Directory holding the zipped files&lt;br /&gt;
#The encrypted zipped files&lt;br /&gt;
#Sub directory inside encrypted zipped files&lt;br /&gt;
#The files&lt;br /&gt;
I needed to recreate this structure in an un-encrypted form so this would be a nested looping script. The only &amp;quot;issue&amp;quot; is that the script outputs the directories with the .zip extension. I was just too lazy to remove it from the directory name but would be an easy addition to the script.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
ls -1 /source/directory &amp;gt; /tmp/filelist1&lt;br /&gt;
while read line&lt;br /&gt;
do&lt;br /&gt;
  	ls -1 /source/directory/$line &amp;gt; /tmp/foundzip&lt;br /&gt;
        while read line2&lt;br /&gt;
        do&lt;br /&gt;
          	mkdir -p /destination/directory/$line/$line2&lt;br /&gt;
                7za x -ppassword /source/directory/$line/$line2 -o/destination/directory/$line/$line2&lt;br /&gt;
        done &amp;lt; /tmp/foundzip&lt;br /&gt;
done &amp;lt; /tmp/filelist1&lt;br /&gt;
rm -f /tmp/foundzip&lt;br /&gt;
rm -f /tmp/filelist1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael.mast</name></author>
		
	</entry>
</feed>