In the current directory, how do we delete all the files and folders that do not end with ".sh"
WARNING: This command will delete the NON-EMPTY folders. Use it with scrutiny!
find . -maxdepth 1 \( ! -iname '*.sh' ! -iname '.' \) -exec rm -r {} \;
#be careful about the empty spaces in the command