Skip to content

Instantly share code, notes, and snippets.

@NbtKmy
Last active December 19, 2023 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NbtKmy/2396e9cd93df1f5bb59fc9ad1da26773 to your computer and use it in GitHub Desktop.
Save NbtKmy/2396e9cd93df1f5bb59fc9ad1da26773 to your computer and use it in GitHub Desktop.
to remove unnecessary Mac-files.
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Bitte einen Ordner für Variabel nennen"
exit 1
fi
find $1 -name ".DS_Store" -type f -ls -delete
rm -rf "$1/__MACOSX"
@NbtKmy
Copy link
Author

NbtKmy commented Dec 19, 2023

usage:

  1. Download this shellscript to the local
  2. change the right "chmod +x remove_Macfiles.sh"
  3. and run like "sh remove_Macfiles.sh ./[your_directry_name]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment