Created
March 5, 2019 22:00
-
-
Save mcoffin/4f5f1b011d66fc4add9b7937e3c836e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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