Last active
October 4, 2022 08:50
-
-
Save wwwins/ff1f7ebb728a1d65c9cdc73797568e67 to your computer and use it in GitHub Desktop.
Revisions
-
wwwins revised this gist
Oct 4, 2022 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,7 @@ done for f in $(ls -Al | awk -F" " '/^d/ {print $9}'; do echo "zip -r -X $f.zip $f" done // forder name with spaces find * -maxdepth 0 -type d -exec zip -r -X {}.zip {} \; -
wwwins created this gist
Oct 4, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ // without hidden folders for f in $(ls -d */); do echo "zip -r -X ${f:0:-1}.zip $f" done // include hidden folders for f in $(ls -Al | awk -F" " '/^d/ {print $9}'; do echo "zip -r -X $f.zip $f" done