Created
March 11, 2021 14:06
-
-
Save Dagimal/185f9c4a96e8660ea6bf1f03b48300db to your computer and use it in GitHub Desktop.
Menyatukan File dengan nama yang sama dalam satu file zip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for fname in *.*; do | |
| prefix=${fname%.*} | |
| [ ! -f "$fname" ] || [ -f "$prefix.zip" ] && continue | |
| zip "$prefix" "$prefix".* | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment