Consider the following shell script

$cat manual_listing.sh                                                          
                                                                                
                                               
#! /bin/sh

# stanza 1
for i in "kama" "raju" "k a m a" "r a j u"
do
        echo $i
done

# stanza 2
names='kama raju'
for i in $names
do
        echo $i
done


If I run this, I get
$./manual_listing.sh                                                            
                                                                                
                                              
kama
raju
k a m a
r a j u
kama
raju

I am wondering if there is a way to rewrite the names variable in stanza2 
such that the output from stanza 1 and stanza 2 are the same.

thanks in advance
raju
-- 
Kamaraju S Kusumanchi
http://malayamaarutham.blogspot.com/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/iv38q5$a33$1...@dough.gmane.org

Reply via email to