[HPADM] for loop

From: J. Corcoran (using_unix@hotmail.com)
Date: Tue Mar 29 2005 - 14:45:37 EST


hello

trying to use

    for I in $( cat /tmp/file )
    do

           echo " $I"

   done

  Inside the file are firstname lastname state as space delimited string

i.e joe smith florida

when running this scripts it splits the string

joe
smith
florida

I need the street to come out as joe smith florida

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:46 EDT