From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97570104324262.tru64-unix-managers.marc@archive.invalid> From: George Gallen Date: Fri, 01 Dec 2000 20:05:21 +0000 To: tru64-unix-managers Subject: Summary: appending a FF without getting the trailing /n? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97570104324262 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01C05BD2.08979870" 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_01C05BD2.08979870 Content-Type: text/plain; charset="iso-8859-1" I'm not sure why my email was converted from Plain Text to HTML....sorry. Two suggestions were to use the -n switch on echo or use of printf. I used the -n switch and worked fine. Thanks for the replys. I must of missed that switch on the man page...Oh well. George -----Original Message----- From: George Gallen [mailto:ggallen@slackinc.com] Sent: Friday, December 01, 2000 2:49 PM To: 'tru64-unix-managers@ornl.gov' Subject: appending a FF without getting the trailing /n? I'm trying to append a FF to end of print job prior to the lp command I'm using: (cat - | /usr/mbin/lf2crlf ; echo "^L") | lp -d PR32 This does append a FF, but it also ads a /n after the FF, which causes the paper to jump one line after a FF, throwing off alignment Other than prepending a '\n' to make the first page look like the rest (also stops you from being able to print on the first line). Thanks George I'm on a AS2100 3.2c DU George Gallen Senior Programmer/Analyst Accounting/Data Division ggallen@slackinc.com ph:856.848.1000 Ext 220 SLACK Incorporated - An innovative information, education and management company http://www.slackinc.com ------_=_NextPart_001_01C05BD2.08979870 Content-Type: text/html; charset="iso-8859-1" appending a FF without getting the trailing /n?
I'm not sure why my email was converted from Plain Text to HTML....sorry.
 
Two suggestions were to use the -n switch on echo or use of printf.
 
I used the -n switch and worked fine.
 
Thanks for the replys.
 
I must of missed that switch on the man page...Oh well.
 
George
-----Original Message-----
From: George Gallen [mailto:ggallen@slackinc.com]
Sent: Friday, December 01, 2000 2:49 PM
To: 'tru64-unix-managers@ornl.gov'
Subject: appending a FF without getting the trailing /n?

I'm trying to append a FF to end of print job prior to the lp command

I'm using:

(cat - | /usr/mbin/lf2crlf ; echo "^L") | lp -d PR32

This does append a FF, but it also ads a /n after the FF, which
causes the paper to jump one line after a FF, throwing off alignment

Other than prepending a '\n' to make the first page look like the rest
(also stops you from being able to print on the first line).

Thanks
George

I'm on a AS2100 3.2c DU

George Gallen
Senior Programmer/Analyst
Accounting/Data Division
ggallen@slackinc.com
ph:856.848.1000 Ext 220

SLACK Incorporated - An innovative information, education and management company
http://www.slackinc.com

------_=_NextPart_001_01C05BD2.08979870--