Created
October 5, 2012 00:28
-
-
Save dahu/3837333 to your computer and use it in GitHub Desktop.
gfy - a commandline tag search tool
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/sh | |
| # gfy: command-line tag search tool. | |
| # Barry Arthur 20121005 | |
| # expects tags file in current directory | |
| [ -z "$1" ] && echo "usage: gfy tag" && exit 1 | |
| grep -i "$1" tags | awk -F "\t" '{printf("vim %s -c\"%s\n", $2, $3);}' | sed -e 's/;"$/"/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment