HP9000-L Archives

August 2002

HP9000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Newton, Tony" <[log in to unmask]>
Reply To:
Newton, Tony
Date:
Thu, 8 Aug 2002 13:53:01 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (56 lines)
Is there a way to keep all my here file info on the same line?  Such as:

:if [ utility <<- + list show q + | grep specialchar ]
              ^^^^^^^^^^^^^^^^^^^
I'm trying to figure out the correct syntax for something similar to the
above.
___
Tony Newton





-----Original Message-----
From: COLE,GLENN (Non-HP-SantaClara,ex2) [mailto:[log in to unmask]]
Sent: Thursday, August 08, 2002 12:41 PM
To: [log in to unmask]
Subject: Re: [HP9000-L] Changing From HP3000 to HP9000


Keven Miller writes:

> :utility << MyEODstringForThisCommand >outfile
> cm1
> ok
> bye
> MyEODstringForThisCommand
> :
>
> Note it must not have leading spaces/tabs, and must be the
> only data on the line.

FWIW, there's an alternate syntax that DOES allow for
leading spaces/tabs if desired, e.g.:

   if [ -n "nonempty string" ]
   then
      utility <<- MyEODStringForThisCommand > outfile
         ...
      MyEODStringForThisCommand
   fi

Note the extra "-" after "<<".

--Glenn

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.

ATOM RSS1 RSS2