Skip to content

Instantly share code, notes, and snippets.

@spiashko
Created September 30, 2020 22:10
Show Gist options
  • Save spiashko/f1aa3f80f2966f55b28ecb2475183af2 to your computer and use it in GitHub Desktop.
Save spiashko/f1aa3f80f2966f55b28ecb2475183af2 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "--- next .idea folders will be deleted: "
find . -type d -name '.idea'
echo "--- next *.iml files will be deleted: "
find . -name '*.iml' #-delete
read -p "Are you sure? " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
find . -type d -name '.idea' -exec rm -r {} +
find . -name '*.iml' -delete
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment