I forget awk - if something else (perl) works better, then tell me how to do this in perl. I grep for a certain expression and I would like to use vi to look at each of the results. I know that "vi +5 afile" will run vi and put you on line 5 of "afile". Is there some command line that I can tyype to automate looking up files. Ignoring syntax (which is wrong):
vi +`awk line number and filename expression`
I would like this to put me at the proper line on each of the relevant files where the expression I am grepping for is found.