The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
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 11-16-2008
elbombillo elbombillo is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 48
Simple grep Question

I tried searching for answers but didn't find any.

When I grep a file results read

4.2.2.2
4.4.4.2
4.5.6.7

But I just want to select each result individually. For Example I want to be able to say
variable1="first grep result"
variable2="second grep result"
variable3="third grep result"

Thanks in advance.

Last edited by elbombillo; 11-16-2008 at 01:00 PM..