- Zipping Subdirectories into Individual Zip Files: Suppose we have the following directory structure inside the parent directory /mydir:├── dir_1
- Handling Nested Subdirectories: The above script won’t create zip files for nested subdirectories (e.g., sub_dir_11, sub_dir_12, etc.). To handle nested subdirectories, we’ll use a recursive approach. Here’s an updated script:#!/bin/bash