Skip to content

Instantly share code, notes, and snippets.

@metacoma
Created October 23, 2013 13:46
Show Gist options
  • Save metacoma/7119066 to your computer and use it in GitHub Desktop.
Save metacoma/7119066 to your computer and use it in GitHub Desktop.
python yourscript.py 2>&1 | awk '/ line / {file = gensub(/,/, "", "", $2); line = $4} END {printf("vim +%d %s\n",line, file)}'
@metacoma
Copy link
Author

$ python init.py 2>&1 | awk '/ line / {file = gensub(/,/, "", "", $2); line = $4} END {printf("vim +%d %s\n",line, file)}'
vim +137 "~/box/joker/joker/nodes.py"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment