simple bash script to copy files into folders split by size
use case: splitting a larger folder for the purposes of copy / backing up to a location with size restrictions
requirements:
- input source directory
- input destination directory
- file size is set to 15GB - modify as needed
sizing is approximate - expected size of destination folders will vary e.g. for 15GB will range anywhere from 14-17GB in practice set your target size in mind accordingly