[HPADM] cat /tmp/file | while read I

From: j appleseed (using_unix@hotmail.com)
Date: Sat Jun 10 2006 - 09:03:38 EDT


This is normal with the for loop. The $(cat...) simply
returns words to for. To return a complete

Use this instead:

cat /tmp/file | while read I
do
  echo " $I"
done

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/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:53 EDT