Skip to content

Instantly share code, notes, and snippets.

@deevis
Created October 15, 2019 19:51
Show Gist options
  • Select an option

  • Save deevis/43bb7828e5a1e2d841792a5f240291bd to your computer and use it in GitHub Desktop.

Select an option

Save deevis/43bb7828e5a1e2d841792a5f240291bd to your computer and use it in GitHub Desktop.
Find all instance of a code string and when and by whom it was last edited
for f in `find . -iname "*.rb" | xargs grep "Searchflow\.call" | sed 's/\(.*.rb\):.*/\1/g' | uniq`; do echo -e "\n\n------------------- $f -------------------------";git blame $f | grep "Searchflow\.call" | sed 's/.*(\(.*\).*\(201.-..-..\).*\(Searchflow.call(api_alias:.*\), payload.*/\1 \2 \3/g'; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment