Skip to content

Instantly share code, notes, and snippets.

@nugmanoff
Last active October 26, 2018 11:08
Show Gist options
  • Save nugmanoff/9064fd328f24c155126ebaaaa9bd3462 to your computer and use it in GitHub Desktop.
Save nugmanoff/9064fd328f24c155126ebaaaa9bd3462 to your computer and use it in GitHub Desktop.
Script for cleaning up directory from executables generated by gcc & jvm compilers
#!/bin/bash
find <working directory> -type f \( -name "*.class" -o ! -name "*.*" \) -exec rm {} +
## or
find <working directory> -type f \( -name "*.class" -o ! -name "*.*" \) -exec rm {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment