If you like me have for example folder filled with NES rom files that end with .nes extension and you would like to zip them all up in individual files to save some space.
I use this one-liner to zip all my NES collection so that it will take less space on my USB stick when I transfer it to my bartop arcade running RetroPie:
for file in *.nes ; do zip "$file.zip" "$file"; done
Continue reading “Bash zip all files in directory one by one in individual zips”