Created
November 12, 2023 07:39
-
-
Save andriitishchenko/2c3a0d4f2f779a9e3a8291dd7c8d350b to your computer and use it in GitHub Desktop.
remove.mail.attachments.sh
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
# replase "echo" to rm -rf | |
find ~/Library/Mail/ -name "*.*" -type f | grep "/Attachments/" | while read -r line; do echo "$line"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment