Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bxt
Last active November 16, 2016 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bxt/ec292fe81a9069f808930992f3dce9b0 to your computer and use it in GitHub Desktop.
Save bxt/ec292fe81a9069f808930992f3dce9b0 to your computer and use it in GitHub Desktop.
Find out what coders want to make great again
git log -i --format=oneline | sed -n '/.*[Mm]ake \(.*\) great again.*/ s//\1/p'
# Or even:
git log -i --format=oneline | sed -n '/.*[Mm]ake \(.*\) great again.*/ s//\1/p' | ruby -ne 'BEGIN{a=[]};a<<$_.strip;END{puts a.join(", ")}'
# A bit shorter and maybe more performant (so use this if you want to make many things great again, e.g. the whole of america):
git log -i --format=oneline | sed -n '/.*[Mm]ake \(.*\) great again.*/ s//\1/p' | ruby -ne 'print ", " if $.!=1;print $_.strip;END{puts}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment