I believe that if you use :PRINT or :FCOPY to look at the file with
Display Functions, you will see a CR/LF that is produced by the default
CCTL for the FWRITE (in PRINT or FCOPY) that writes the record to the
port. So, there really is only 1 LF per record. To be sure, you can use
:FCOPY from=myfile;to;char;hex and look at the actual hex output (my
personal favorite way to see what is really there). If in the shell od
-xc myfile will work too.
I haven't tested this but if you're in vi and don't hit CR on that last
line, I don't think you get a final LF.
HTH
"Newton, Tony" wrote:
>
> Hello all,
>
> I have a file that has 2 LF's and 1CR at the end of each line, however when
> I look at it with "Display Functions" turned on in Reflection there are no
> additional lines in between each line of data. So if each 'lf' below is a
> linefeed and each 'cr' is a carriage return then I would expect that it
> would look like the following:
> Example 1.
> lf
> data lfcr
> lf
> data lfcr
> lf
> data lfcr
> lf
> data lfcr
>
> But instead it always display's in the following format:
> Example 2.
> lf data lfcr
> lf data lfcr
> lf data lfcr
> lf data lfcr
>
> Some of our other files only have 1 'lf' and 1 'cr' and they always come up
> in the same format as example #2. Are my expectations in error? Here is
> some additional information about the file.
>
> FILENAME CODE ------------LOGICAL RECORD----------- ----SPACE----
> SIZE TYP EOF LIMIT R/B SECTORS #X MX
>
> DMEMBR03 8960B VA 23216 50000 1 31936 19 32
>
> Thanx all,
> ___
> Tony Newton | [log in to unmask]
> HP Systems Admin | (503) 574-5831
> Providence Health Plan | www.providence.org
>
> <<All views are mine and probably only mine>>
>
> 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.
>
> * To join/leave the list, search archives, change list settings, etc *
> * please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|