qtp files

John Backus john@beechglen.com
Thu, 22 Jul 1999 16:17:12 -0500


Ken,

So, the earlier method posted only seemed to work with QUIZ and definitely
would not work with what you referred to as UNIXIO files...

Not knowing much UNIX stuff, you might need to do an extra step after QTP
does its thing.  On an HP3000 system which is POSIX compliant, I found a
couple of solutions that were presented to the HP3000 List in answer to a
similar question.  Again, giving credit where credit is due, the providers
of the information have been noted.

John Backus
Beechglen Development, Inc.
www.beechglen.com (great links, free software (incl.. PowerHouse tools))

question:

> We have a need to generate files that a PC can get using Samba. The
vendors
> program REALLY wants both CR & LF at the end of each line, not just the LF
> that tobyte puts. Is there any quick and easy way to do this with standard
> utilities?

answer #1:

Certainly:

        awk ' {print $0 "\r"}' /OLD/FILE/PATH >/NEW/BYTESTREAM/FILE

For each record that awk reads from /OLD/FILE/PATH, the entire record is
stored
in the $0 variable, and then printed with a CR ("\r") appended.
--
Mark Bixby


answer # 2:

You might try the following to add or remove CR's...

shell/iX: /bin/awk '{print $0 "\r"}' < posixfile > dosfile

shell/iX: /bin/tr -d '\015' < dosfile > posixfile

Lars "YMMV" Appel.



= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.