Sponsored Content
Full Discussion: Form Feed...
Top Forums UNIX for Dummies Questions & Answers Form Feed... Post 42584 by Ygor on Friday 31st of October 2003 05:02:18 AM
Old 10-31-2003
If the form-feed is within the first 10 lines, try....
Code:
sed '1,10s/^L//' file1 > file2

....where ^L is Ctrl-V Ctrl-L

OR

To remove only the first line-feed in the file, try....
Code:
awk '/\014/&&f<1{sub("\014","");f=1};1' file1 > file2


Last edited by Ygor; 10-31-2003 at 06:17 AM..
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Changing Unix form to Microsoft Word form to be able to email it to someone.

Please someone I need information on how to change a Unix form/document into a microsoft word document in order to be emailed to another company. Please help ASAP. Thankyou :confused: (8 Replies)
Discussion started by: Cheraunm
8 Replies

2. UNIX for Dummies Questions & Answers

Disable form feed on a serial printer connected to Sco OpenServer

I connected a serial printer to my scoOpenServer which works great. I was able to disable the banner in the interface of the printer. However i am unable to find the command in the interface to disable the formfeed . Below is a copy of the interface file. Please can anyone instruct me on how to... (0 Replies)
Discussion started by: scoman2
0 Replies

3. UNIX for Dummies Questions & Answers

Page feed in Troff

Hi, does anyone knows how to give the page feed command to Printer in troff. Actually I want to implement the functionality where I'll print say 10 pages and I want user to stop printer at 5th page to do manual feed by user .... (2 Replies)
Discussion started by: dpmore
2 Replies

4. Shell Programming and Scripting

replace last form feed with line feed

Hi I have a file with lots of line feeds and form feeds (page break). Need to replace last occurrence of form feed (created by - echo "\f" ) in the file with line feed. Please advise how can i achieve this. TIA Prvn (5 Replies)
Discussion started by: prvnrk
5 Replies

5. AIX

Printer delay before final form feed

Hi, I am new to printing with Unix (AIX on HP). I am printing from a COBOL program. On our test system the page prints and does a Form Feed to the next page. This is good. When I release the program to our customer it prints the page but waits 5 or more seconds before doing a page... (11 Replies)
Discussion started by: habler
11 Replies

6. Shell Programming and Scripting

Transpose Data form Different form

HI Guys, I have data in File A.txt RL03 RL03_A_1 RL03_B_1 RL03_C_1 RL03 -119.8 -119.5 -119.5 RL07 RL07_A_1 RL07_B_1 RL07_C_1 RL07 -119.3 -119.5 -119.5 RL15 RL15_A_1 RL15_C_1 RL15 -120.5 -119.4 RL16... (2 Replies)
Discussion started by: asavaliya
2 Replies

7. Shell Programming and Scripting

Remove x lines form top and y lines form bottom using AWK?

How to remove x lines form top and y lines form bottom. This works, but like awk only cat file | head -n-y | awk 'NR>(x-1)' so remove last 3 lines and 5 firstcat file | head -n-3 | awk 'NR>4' (5 Replies)
Discussion started by: Jotne
5 Replies

8. Shell Programming and Scripting

Insert FF (feed form) in text file so that when printing the printer print on a new page accordingly

Hello. First happy new year to everybody. I have a script that generate a text file ( /tmp/part_list.txt for example ). This file can be edited using a kde graphical text editor like kate or kwrite The file can be printed out from command line or within the text editor using the print... (5 Replies)
Discussion started by: jcdole
5 Replies
LP(1)							      General Commands Manual							     LP(1)

NAME
lp, lpd - copy a file to the line printer SYNOPSIS
lp [file ...] DESCRIPTION
Each file argument to lp is send to the line printer to be printed. Standard input is read and printed if there are no arguments. Lp exe- cutes /usr/lib/lpd with each file as input. Lpd puts the file in /usr/spool/lpd and starts printing the jobs on /dev/lp unless another lpd is already running. If lpd finds any character in the input that it doesn't know how to handle then it will print the rest of the file without any special treatment. This also means that no formfeed is sent after the file has been printed to force out the page. Lpd simply assumes that you know what you are doing. (dumb, eh?) Note: Don't do anything with a file until it is printed, lpd only makes a copy of a file in the spool directory when it is not world read- able. If it can be read then it is printed directly. FILES
/usr/spool/lpd/jobXXXXX Information about a job. /usr/spool/lpd/tmpXXXXX Associated file to be printed. /etc/termcap The 'lp' entry describes the printer by the "li#" and "co#" fields. By default 66 lines (li#66), and 80 columns (co#80). SEE ALSO
lp(4), termcap(5), termcap(7). BUGS
Not spooling a world readable file may not be such a smart idea. A formfeed should be printed and the printer reset after a job full of escape codes, but this may cost paper. No banner page. AUTHOR
Kees J. Bot (kjb@cs.vu.nl) LP(1)
All times are GMT -4. The time now is 08:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy