Sample Header Ad - 728x90

How to remove __MACOSX and .DS_Store from zip files in the whole directory mac

0 votes
0 answers
1151 views
I need to create a script that searches and removes __MACOSX and .DS_Store from zip files in the whole system (MACOS). I have found this useful command that does the job but only if you are already in the directory of the file: for f in *.zip; do zip -d "$f" "__MACOSX*"; done I need to implement the search command and combine it with this one. Thanks in advance.
Asked by Milodoc (1 rep)
May 1, 2023, 12:29 AM