Quiz text file width
=?ISO-8859-7?Q?=C1=D1=C3=D5=D1=C9=CF=D5_=C1=CD=C4=D1=C5=C1=D3?=
a.argyriou@scicom.gr
Fri, 26 Apr 2002 13:04:46 +0300
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C1ED09.CB884AC0
Content-Type: text/plain;
charset="ISO-8859-7"
Hello Chris,
Quiz will trim the trailing blanks from every line. You can choose from the
following alternatives.
1. Create a subfile instead.
2. Print something at column 81, which you will strip using a Unix script.
3. Keep the output as is and convert it to 80 characters fixed length using
the following command from Unix:
awk -e '(printf "%80-s\n",$0}' file1 > file2
(where file1 is your original text file and file2 the new one).
Regards
Andreas Argyriou
Scicom S.A.
Athens, Greece
-----Original Message-----
From: Gassett, Chris [mailto:Gassett@aavid.com]
Sent: Thursday, April 25, 2002 7:18 PM
To: 'powerh-l@lists.swau.edu'
Subject: Quiz text file width
I am creating a text file with Quiz that needs to be 80 characters wide.
The data may not fill that 80 characters but the field needs to be displayed
as 80 characters wide. When I vi the file after the quiz has executed those
records that do not fill the 80 characters are really not 80 characters
wide. How do I go about creating a txt file that stays 80 characters wide?
I could dump out a char at 81 and use a unix script to strip that character.
Any other suggestions?
PowerHouse 8.13.D3
------_=_NextPart_001_01C1ED09.CB884AC0
Content-Type: text/html;
charset="ISO-8859-7"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-7">
<TITLE>Quiz text file width</TITLE>
<META content="MSHTML 5.50.4134.600" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=945555009-26042002>Hello
Chris,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=945555009-26042002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=945555009-26042002>Quiz
will trim the trailing blanks from every line. You can choose from the following
alternatives.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=945555009-26042002>1.
Create a subfile instead.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=945555009-26042002>2.
Print something at column 81, which you will strip using a Unix
script.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=945555009-26042002>3.
Keep the output as is and convert it to 80 characters fixed length using the
following command from Unix:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=945555009-26042002> awk -e '(printf "%80-s\n",$0}' file1
> file2</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=945555009-26042002> (where file1 is your original text
file and file2 the new one).</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=945555009-26042002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=945555009-26042002>Regards</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=945555009-26042002>Andreas Argyriou</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=945555009-26042002>Scicom
S.A.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=945555009-26042002>Athens, Greece</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=945555009-26042002></SPAN></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Gassett, Chris
[mailto:Gassett@aavid.com]<BR><B>Sent:</B> Thursday, April 25, 2002 7:18
PM<BR><B>To:</B> 'powerh-l@lists.swau.edu'<BR><B>Subject:</B> Quiz text file
width<BR><BR></FONT></DIV>
<P><FONT face=Arial size=2>I am creating a text file with Quiz that needs to
be 80 characters wide. The data may not fill that 80 characters but the
field needs to be displayed as 80 characters wide. When I vi the file
after the quiz has executed those records that do not fill the 80 characters
are really not 80 characters wide. How do I go about creating a txt file
that stays 80 characters wide? I could dump out a char at 81 and use a
unix script to strip that character. Any other suggestions?</FONT></P>
<P><FONT face=r_ansi size=2>PowerHouse 8.13.D3</FONT>
</P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C1ED09.CB884AC0--