Write a basic bash script for Mac and DOS batch file (or Powershell) with similar functionality
$10-30 CAD
Finalizat
Data postării: peste 3 ani în urmă
$10-30 CAD
Plata la predare
Hello,
I am looking for someone who can do this within the next few hours for a quick $30. It shouldn't take long. See the end of this project's description. There is an opportunity to earn more with later enhancements.
IMPORTANT: If you are only able to write one of the scripts (Mac or Windows version), please bid anyway. I need at least one OS solution as soon as possible.
I need two (or four) automation scripts that perform the same function:
1) MacOS bash or shell script
2) Windows DOS batch or Powershell
Scenario summary:
Pre-process (extraction)
1) Unzip a file to a folder of the same name as the parent zip file name or date (changeable in script).
2) Unzip all but two of the child zip files from the new folder into directories of the same name as their zip file names, but only extract the "[login to view URL]" file.
2b) The two child zip files that should always be ignored are: [login to view URL], [login to view URL]
Post-process (re-zip)
Using the same script as above (with a command-line option to indicate pre-process or post-process) OR a separate script...
1) Rezip the extracted files to recreate the exact structure of the original file. Note: When executing on the Mac, you must be careful not to include the DS_Store hidden files.
So something like this zip command-line must be used:
a) zip -vr source destination -i [login to view URL]
or
b) zip -vr source destination -x "*.DS_Store"
An example zip file:
Filename: [login to view URL]
[login to view URL]
[login to view URL] (and 100's more html files)
[login to view URL]
[login to view URL]
[login to view URL] (and 100's more html files)
[login to view URL]
This zip file structure continues with 80 additional zip files contained within DNA_Proto_Struct_ADB.zip. Every zip file has the same structure, a lot of html files and a single [login to view URL] file.
I need to be able to do 2 tasks:
1) Unzip [login to view URL] and each of the embedded zip files into their individual namesake folders, but ignore all but the [login to view URL] file.
Like this (using the above example):
Zy_OP
[login to view URL]
Nano_Part
[login to view URL]
Notes:
- The parent zip file name ([login to view URL]) never changes.
- The file structure never changes.
- A single [login to view URL] file is inside each child zip file.
- During the pre-process, always ignore the two child zip files: [login to view URL], [login to view URL]
- I uploaded an example of the zip file before (pre-process) and what it should look like after (post-process).
Payment made after I am able to successfully test on my end.
The value of this project is low because it should be a very simple 2 - 4 scripts. However, I am offering bonus payment on later enhancements to this script. If you know Java, I will offer you a larger related project.
Hello !
If You are satisfied with a period of about a week, then I can try do this in vbscript procedure (for Windows, not for Mac).
My price is preliminary. I will be able to calculate
the price completely after clarifying the assignment.
Thank You. Regards, Alexei.