Y'all,

Not sure where it was the calendar or something else that suddenly
made my tying go South.  maybe both.  --oh, yes, i still need to
buy a new clicky kybd.   but that won't help with the script i
need.

back hen i worked from cray reseach in WI, a shell /bin/sh wizard cooked
up what i wanted in minutes.  i have lost in in the 20+ years so
maybe some shell or perl guru can help me.  

I'm looking for a script that takes on arg and lets   me vi/vim into
the r esults.  Let's say that I'm looking for the string 201107 in
a slew of files.  the script find it with grep---not grep -w, just
grep.  collect es the filenames and lines (grep -n) and saves  then
temporarily, then points vim or vi at each file+linenumbr and execs
it for me.   the fewer keystrokes, the better.

can anybody help me?

tia,

gary


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
           Journey Toward the Dawn, E-Book: http://www.thought.org
          The 8.51a release of Jottings: http://jottings.thought.org

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to