Skip to content

Instantly share code, notes, and snippets.

@waliahimanshu
Last active February 28, 2023 14:12
Show Gist options
  • Save waliahimanshu/e565ba048cad6d54047e2011f2e4c02e to your computer and use it in GitHub Desktop.
Save waliahimanshu/e565ba048cad6d54047e2011f2e4c02e to your computer and use it in GitHub Desktop.
Find class usages in other modules by searching the `import regex` - allows to exclude folders
#!/bin/bash
root_dir=""
find "$root_dir" -type d \( -path "*/network" -o -path "*/build" -o -path "*/backup" \) -prune -o -type f -name "*.kt" -exec grep -Hn "import com\.x\.android\.network\." {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment