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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-01-2009
mehrdad68 mehrdad68 is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 47
How to grep word + next line in solaris 10?

Hi my unix friends,
How do I grep a word and next line with solaris 10.

tnx
Mehrdad

---------- Post updated at 03:17 PM ---------- Previous update was at 03:09 PM ----------

I found this one:

cat <file_name> | awk '/<seek_word>/ {print;getline;print}'