[HPADM] hpux scripting with a crypt file

From: Joey Beetle (using_unix@hotmail.com)
Date: Wed Jan 12 2005 - 14:54:59 EST


if [ -z "$1" ]
then
        echo "Enter nodename: \c"
        read node

        for A in `crypt <.net |grep $node"`
        do
        echo $A
      done

------out put ------

Patriot:
apples
:
applcation server

I would like to see the string not spilt.
I want to have the string look

Patriot:apples:applcation server

Can anybody help ?

_________________________________________________________________
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:45 EDT