Skip to content

Instantly share code, notes, and snippets.

@mcoffin
Created March 5, 2019 22:00
Show Gist options
  • Select an option

  • Save mcoffin/4f5f1b011d66fc4add9b7937e3c836e8 to your computer and use it in GitHub Desktop.

Select an option

Save mcoffin/4f5f1b011d66fc4add9b7937e3c836e8 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ ! -f "$1" ]; then
echo 'Usage: find_tabbers FILE'
exit 1
fi
grep -P -n '\t' "$1" | awk -F ':' '{print $1;}' | xargs -L 1 -I NUMLINE git blame -L NUMLINE,NUMLINE "$1" | bash -c 'cat -'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment