03-13-2012
Page Break in a file for printing
Hi,
We have 1lac records in source file and unix script will genarate around 1000 files.
From target location the files are taking for printing on physical papers.
the page size limitation : 256 Lines
Can you please tell me how to insert the page break in a flat file for printer.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to attach a company logo to the top of a laser report can anyone tell me how to attach a .jpg or .bmp file to a report?? (1 Reply)
Discussion started by: hughes0928
1 Replies
2. Shell Programming and Scripting
Hello All,
I am new to unix scripting, I have an urgent issue
Is it possible to do a group by on the last column and then a page break on the text file.
For example I have a text file, below is the example data
STRT 2154081~VA ~23606 ~TM14~8506~1485
STRT 2130893~VA ~23602 ~TM15~8602~1586... (4 Replies)
Discussion started by: udaybo
4 Replies
3. Shell Programming and Scripting
Hi,
i have a file say samp.s which has
123 a b c d
123 e f g h
123 i j k l
123 m n o p
234 a b c d
234 e f g h
234 i j k l
the first 3 characters in each line are considered the key values
i have one more file temp.txt which has
123
234
i want to have a page break in... (5 Replies)
Discussion started by: Sheema
5 Replies
4. Shell Programming and Scripting
I have a shell script that runs periodic upgrades on machines. I want to print certain echo commands from the shell script onto a webpage. What command in shell should I use for doing this. (1 Reply)
Discussion started by: lassimanji
1 Replies
5. Windows & DOS: Issues & Discussions
We are using Red Hat. We have a issue like this: We want to print from Linux, to a printer attached to a Windows machine. What we want to print is a PDF. It prints, but the printing starts from the middle of the page. In the report, there is no space at the top but still printing starts from the... (5 Replies)
Discussion started by: rohan69
5 Replies
6. AIX
We have configured Network printers in AIX 6.1. We are facing a Weird problem in Printing. While printing the user is getting a blank page after 2 pages.
Please let us know the cause of this issue and ways to rectify it.
If this is problem with banner/feeds how to view the default banner... (1 Reply)
Discussion started by: sugan_p
1 Replies
7. Shell Programming and Scripting
Hi,
The shell script inserting the millions of rows into target flat file system and handling the line number for each line.
We need a page break line after every 10,000 lines.
is there any command to insert a page break line into target file. (3 Replies)
Discussion started by: koti_rama
3 Replies
8. UNIX for Dummies Questions & Answers
Hi:
I have 2 files: teststring.txt and a tempfile.txt
teststring file contains:
s/Primary Ins./\n1/g
I'm trying to search for "Primary Ins." string in tempfile. For every "Primary Ins." string that is found, a new line is inserted and put in number 1. Then, write out the newfile... (7 Replies)
Discussion started by: newbeee
7 Replies
9. How to Post in the The UNIX and Linux Forums
Hi,
I have set up an HP printer, Model P3005dn" on our server running HP-Ux 11.31.
The printing is fine but I'm also getting an extra page printed with an right arrow (-->) only. I suspect that this could be the "Tab Expansion" or a "CR/LF" character.
Can ayone please advise what could... (0 Replies)
Discussion started by: Koketso
0 Replies
10. Shell Programming and Scripting
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
la88cof(8) System Manager's Manual la88cof(8)
NAME
la88cof - Filter for the Simplified Chinese LA88 printer
SYNOPSIS
/usr/lbin/la88cof [-c] [-h host] [-i indent] [-l length] [-L locale] [-n login] [-w width] [accounting_file]
OPTIONS
Prints control characters. Specifies the host name of the job owner. This name can contain Hanzi characters. Specifies the amount of
indentation. The default value is no (no indentation). Specifies the page length in lines. The default value is 66. Specifies the printer
codeset. This value must be a valid locale name. The default value is zh_CN.dechanzi. Specifies the login name of the job owner. This name
can contain Hanzi characters. Specifies the page width in columns. The default value is 132.
OPERANDS
Specifies the file to record accounting information.
DESCRIPTION
The la88cof filter is used to filter text data for the LA88-C printer. The filter handles the device dependencies of the printer and per-
forms accounting functions. At print job completion times, accounting records are written to the file specified by the af field in the
/etc/printcap file.
The la88cof filter can handle plain text files and files that have been preprocessed by nroff. Either kind of file can contain non-ASCII
characters. The filter translates nroff control sequences for underlining, superscripting, and subscripting into the proper control
sequences for the LA88-C printer.
The la88cof filter can be the specified filter in both the of and the if fields in the /etc/printcap file. For more information on these
fields, see printcap(4).
The LA88-C printer can be configured to use the software on-demand loading (SoftODL) mechanism to print user-defined characters (UDCs). See
i18n_printing(5) for a more detailed description of SoftODL.
To enable SoftODL printing, set the ys field in /etc/printcap to 256. You can also set the default SoftODL database, style, and size by
including the odldb and odlstyle options in the ya field. If you specify a value for the yt field, use fifo. For more information on
these fields, see printcap(4).
NOTES
The lpr command supports a number of options and associated arguments to enable localization features supported by various printers. The
following can be used with the la88cof print filter: To specify the SoftODL database path To specify SoftODL font style and size
For a complete description of the -A option and its arguments, refer to lpr(1).
ERRORS
The lf field (default value is /dev/null) in the /etc/printcap file specifies the name of the error log.
SEE ALSO
Commands: lpr(1), pr(1), lpd(8), pac(8)
Files: printcap(4)
Others: i18n_printing(5)
la88cof(8)