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 > Shell Programming and Scripting
.
google unix.com




Thread: using array
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-06-2007
shary shary is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 61
using array

hello experts

can u tell me please how i have a text file .
In third field of a file there are names like

abb
asa
asas
asasas
i just want to store the third filed of a file in an array.
and to display the result in a same order using for loop through array
can any one tell me how to do this in the shell script

take care bye

shary