|
search from specified charactor space
Hello, I'm quite a noobie in programming in UNIX
and I was wondering if it is possible to use 'grep' or similar method
to find PATTERNS from designated location (of charactor)
for example
|param 1 ||param2 |
andrew kim josh
daniel kim michelle
michelle andrew kim
I hope to be able to search up
kim and display only the first 2 lines not the 3rd
i know that cut has -c1-10 so you can specify charactor to cut
but can the grep or other things be done the same? and display the whole line?
thank you very much
regards
|