The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX 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
Reply With Quote
Forum Sponsor