One way:
Quote:
vi +`grep -n kuku2 file.c | cut -f 1 -d':'` file.c
|
vi +line_number file.c - opens file at 'line_numeber'
grep -n kuku2 filec - outputs line_number in the first column
cut -f 1 -d':' - cuts out the first column delimited by ':'
I don't how it behaves if there are two lines with "kuku2".