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.