APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

remove strip first formfeed form feed control l
© December 2004 (various authors)

What is this stuff?

If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):

From: "Dean Northam" <4udean @ home.com>
Newsgroups: comp.unix.sco.misc
References: <F_jJ5.54801$N%1.28820704@news3.rdc1.on.home.com>
<39F60505.F3AB54E4@aplawrence.com> Subject: Re: Stripping off form feed at printer driver X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <KULJ5.60991$N%1.32351602@news3.rdc1.on.home.com> Date: Thu, 26 Oct 2000 01:36:42 GMT Hello: Thank-you everyone for your help, I used Tony's cause it was the cleanest and easiest to setup. I was using "netcat" printer script so it was very straight forward and Works GREAT!

Thanks Again,

PS - Now can anyone recommend the easiest way to use the same QMS printer
(which automatically handles PCL or Postscript emulation) to merge text and
a form overlay together? I have two static forms I like to design and then
lay text over top of it (NOT fill-in the form but overlay the designed form
around the text print). I know that I need to use either PCL form and store
it in memory and then recall it (only problem is I'd have to send the form
everytime, cause I'd never know if it had been restarted) or use mpage,
psmerge or enscript and do it in postscript. I'd really like to see a real
work example if anyone has one.

"Tony Lawrence" <tony@aplawrence.com> wrote in message
> Richard Howlett wrote:
> >
> > Dean Northam wrote:
> > >
> > > Hi again:
> > >
> > > We have ALOT of legacy applications which send a form feed at the
begin of
> > > year print. This is fine on our line printers, but very annoying on
> > > laser printers. Can someone tell me how to tr, sed or gawk (i think
that is
> > > what you might use) to strip off the first form feed in the printer
> > > (I think its on the first or second line of the spooled file)?
> >
> > # The following strips off the first formfeed
> > FIRSTLINE=/tmp/lp.fl.$$
> > RESTOFILE=/tmp/lp.rs.$$
> > OUTFILE=/tmp/lp.ou.$$
> > cat "$FILE" | head -1 | tr -d "\014" > $FIRSTLINE
> > cat "$FILE" | tail +2 > $RESTOFILE
> An awful lot of unnecessary work:
> just
> cat $file | sed '1,2s/^L//'
> (the ^L is a real ctrl-L, change 1,2 to just 1 if you know for
> sure it's in the first line).
> --
> Tony Lawrence (tony@aplawrence.com)
> SCO/Linux articles, help, book reviews, tests,
> job listings and more : 

Got something to add? Send me email.

(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> remove strip first formfeed form feed control l printer––>Re: Stripping off form feed at printer driver

Inexpensive and informative Apple related e-books:

Take Control of iCloud, Fifth Edition

Take Control of Apple Mail, Third Edition

Take Control of the Mac Command Line with Terminal, Second Edition

Take Control of Parallels Desktop 12

Sierra: A Take Control Crash Course

Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us

Printer Friendly Version

Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. (Tim Berners-Lee)

Linux posts

Troubleshooting posts

This post tagged:


Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode

SCO Unix Sales, Support, & Service

Phone:  707-SCO-UNIX (707-726-8649Toll Free: 833-SCO-UNIX (833-726-8649)