HP3000-L Archives

December 2000, Week 1

HP3000-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:
Barry Lake <[log in to unmask]>
Reply To:
Barry Lake <[log in to unmask]>
Date:
Fri, 1 Dec 2000 13:54:08 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (21 lines)
At 1:48 PM -0800 12/1/00, Sohrt, Jeff wrote:
>Can someone explain how to print the first few bytes of a file.  All I can
>think of is a Vesoft.MPEX way but given the mass of Posix stuff in
>HPBIN.SYS, I was hoping for a non 3rd-party semi-elegant way of doing this.
>
>Basically I want a PRINT myfile;END=1 but I don't want to see the whole
>record, only the first seven bytes.


In the shell:

   $head -1 myfile | cut -c1-7


Barry Lake                              [log in to unmask]
Allegro Consultants, Inc.               www.bogus.allegro.com
(408)252-2330
--------
Attempting to reduce spam influx.
Remove ".bogus" to create valid address.

ATOM RSS1 RSS2