10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hi,
If there is an expert that can help:
I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C.
I want to add page numbers before each page break as in : Page XXXX
Regards antman (9 Replies)
Discussion started by: antman
9 Replies
3. Shell Programming and Scripting
Hi
I have a pdf file that is being generated using the rwrun command in the shell script.
I then have the lp command in the shell script to print the same pdf file.
Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies
4. Web Development
Hi
Is there a way to calculate the page load time, I am trying to calculate the load time of a page locally. I found tools to do this over http or https but none that work locally.
Any ideas?
Thanks. (4 Replies)
Discussion started by: jamie_123
4 Replies
5. UNIX for Dummies Questions & Answers
Good afternoon,
I wonder how i could use unix commands to ease the reading of long command result output ?
like the "php -i" or any other command that returns a long answer.
I could not find the right terms to Google it or search the forum. Therefore I bother you with this question.
... (3 Replies)
Discussion started by: Mat_k
3 Replies
6. Shell Programming and Scripting
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
7. Solaris
Hi,
Currently I'm experience very high page ins on my system running on solaris 10.
From vmstat, the page ins figure is very high, further drill down shows the page ins are from file system and occassional spike in executable page ins.
Details as follow:
oracle@perch:/files>> vmstat 5... (9 Replies)
Discussion started by: srage
9 Replies
8. Shell Programming and Scripting
hi all
i have file_1 which contains 66 pages and i want to print only page 1 to 3
i try to write like this
lp -d name_of_printer file_1 -P 1-7
this command does not work
any ideas ? (4 Replies)
Discussion started by: naamas03
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I've a text file that has a formfeed character at the beginning.
I want to get rid of this formfeed character using sed.
But I don't know how to specify the formfeed character.
I've tried \014 (octal for formfeed), \f but still not works.
Regards,
Johnny (5 Replies)
Discussion started by: johnny_woo
5 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I'm going write a small handbook. The typesetting software I'm going to use is troff. There are -ms -me -mm macros for troff. Which one is the most suitable? Thanks!
-Tony (2 Replies)
Discussion started by: tonyt
2 Replies
MPM(6) Games Manual MPM(6)
NAME
mpm, mspe - macros for page makeup
SYNOPSIS
troff -mpm file ...
troff -mspe file ...
DESCRIPTION
These troff(1) macros, largely compatible with ms(6), make better pages. They silently invoke and provide information to a postprocessor
that moves floating figures, avoids widows, and justifies pages vertically by stretching vertical spaces that result from .PP, .LP, .IP,
.QP, .SH, .NH, .DS/.DE, .EQ/.EN, .TS/.TE, .PS/.PE, .P1/.P2, and .QS/.QE. The packages support different styles:
-mpm generic
-mspe Software--Practice and Experience
The following macros are different from or not part of -ms. Values denoted n have default value 1v.
.BP Begin a new page.
.FL Flush: force out previous keeps.
.FC Finish a two-column region and start a new one.
.KF m Floating keep, with preferred center at vertical position m. Special values (default) and are permitted.
.NE n Start new page if remaining vertical space on this page is less than n.
.P1 Begin a program display (constant width font).
.P2 End a program display.
.P3 Insert optional break point in program display.
.SP n exactly
.SP n Insert vertical space of height n, stretchable unless exactly is present.
.Tm text
Place page number and text on the standard error output.
.X text
Present text to the hidden page-makeup program as part of a device-dependent output sequence x X text. Equivalent to X'text'.
Useful number registers:
HM Header margin; default 1 inch.
FM Footer margin; default 1 inch.
FO Footer position; default 10 inches.
%# Page number of current page.
dP,dV Shrinkage of point size and vertical spacing for .P1, in points.
Useful strings:
%e,%o Even and odd page title commands, as .tl ''''.
FILES
/sys/lib/tmac/tmac.pm
/$cputype/bin/aux/pm
SOURCE
/sys/src/cmd/pm
SEE ALSO
ms(6), troff(1)
B. W. Kernighan and C. J. Van Wyk, ``The -mpm Macro Package'', Unix Research System Programmer's Manual, Tenth Edition, Volume 2.
BUGS
These features of -ms are missing:
Document styles other than the default .RP.
Space between front matter and first paragraph. Recover it with .SP 2.
Separating rule above footnotes.
Keeps assigned to a separate page.
Pages with more than two columns.
Troff option -o doesn't work with -mpm because only the postprocessor knows the page numbers.
MPM(6)