Automated Bash Zip Grouping

Job ID: 40233254

Budget: $30 – $250 USD

I have a folder holding roughly 600 files. Each logical set is three items that share the same base name—think “File 1.mp3”, “File 1pt1.mp3”, “File 1pt2.mp3”. I need a Linux-friendly script that will:

• walk the directory once,
• detect every 3 or 4 that matches this specific filename pattern,
• compress each group of 3 files into its own archive, (All File1, File2, and File3 would be in one archive) and
• name those archives group1.zip, group2.zip, group3.zip … incrementing automatically until no files are left un-zipped.

The script must run from the command line on any standard distribution with core utilities (bash, find, awk, zip, etc.). Please make sure it:

• skips or warns if a file is missing from a trio rather than crashing,
• overwrites an existing zip of the same name only if I pass a clear flag, and
• leaves the original files untouched.

Deliverables
1. A single executable script (bash or POSIX sh).
2. A short README or comment block explaining usage, required packages (if any beyond zip), and an example run.

I’ll test by dropping the script in the folder, running it, and confirming that every three related files become one correctly named zip with no leftovers or duplicates.