#!/bin/sh # search for pattern in files # then open with vi at the appropriate line # require pick # prx@si3t.ch # MIT test -n "$*" && eval "$(grep -EnIRs "$*" |\ match |\ awk -F ':' '{ printf("vi +%s %s", $2, $1) } ')"