Skip to content

Instantly share code, notes, and snippets.

@fgdrf
Created February 10, 2015 22:38
Show Gist options
  • Select an option

  • Save fgdrf/1b28ea78d1d44ce46eb4 to your computer and use it in GitHub Desktop.

Select an option

Save fgdrf/1b28ea78d1d44ce46eb4 to your computer and use it in GitHub Desktop.
# start it from within plugins-folder
for i in $(find . -name plugin_*.properties -maxdepth 2 -print)do
# get file to grep (build.properties)
_bf=`dirname $i`/build.properties
# get what to grep
_bn=`basename $i`
# cnt
_cnt=`grep -c $_bn $_bf`
echo "$_cnt $_bf ($_bn)"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment