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 -->
  #7 (permalink)  
Old 06-15-2009
Anteus Anteus is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 54
Quote:
Originally Posted by rakeshawasthi View Post
this way...

Code:
echo ${_Array[1]}

Tried..but its not printing anything...any other way u know to do this.

the test code is

IFS=""
eve=`psg ftp | grep tV`
n=0
for line in $eve
do
n=`expr $n + 1`
echo $line
array=`echo $line |awk -F" " '{print $5}' |awk -F":" '{print $2}'`
echo ${array[2]}
done