Skip to content

Instantly share code, notes, and snippets.

@dahu
Created October 5, 2012 00:28
Show Gist options
  • Select an option

  • Save dahu/3837333 to your computer and use it in GitHub Desktop.

Select an option

Save dahu/3837333 to your computer and use it in GitHub Desktop.
gfy - a commandline tag search tool
#!/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