The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-30-2008
akmix akmix is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 4
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