Is it possible for search for files of a certain type within zip files and perform an action on them still keeping them within the zip?
I want to perform audio normalisation on MP3 files held within karaoke .zip files.
Thanks,
Mark.
Moderator: Mr_Noodle
Mr_Noodle wrote:No way to do that unless you use some special script. The only option otherwise would be to unpack the archive then match on the file.
unzip -p $1 apple_health_export/export.xml | less
Mr_Noodle wrote:The shell script return value only indicates whether it ran successfully or not and has nothing to do with anything you output.
You need to do a comparison against the output and use the exit command with the appropriate return code.
unzip -l $1 | grep -q apple_health_export && echo $?