9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
For a given string that may contain any ASCII chars, i.e. that matches .*,
find and print only the chars that are in a given subset.
The string could also have numbers, uppercase, special chars such as ~!@#$%^&*(){}\", whatever a user could type in
without going esoteric
For simplicity take... (1 Reply)
Discussion started by: naderra
1 Replies
2. Shell Programming and Scripting
How to print the names with a highest value within a set and filter if it is the only unique group within the same set
input
sets names value groups
j007 shot1 0.6 a
j007 shot2 0.5 b
j007 shot3 0.4 bb
j007 shot4 0.3 bc
j007 shot5 0.2 ... (8 Replies)
Discussion started by: quincyjones
8 Replies
3. UNIX for Advanced & Expert Users
i have 2 installation on VirtualBox : centos & debian
the fonts look nice on debian.
i have provided 2 screenshots in the attachments.
please advise me how to achieve same in centos.
thanks. (4 Replies)
Discussion started by: coolatt
4 Replies
4. UNIX for Advanced & Expert Users
I want to differentiate the STDOUT and STDERR messages in my terminal .
If a script or command is printing a message in terminal I want to differentiate by colors,
Is it possible ?
Example:
$date
Wed Jul 27 12:36:50 IST 2011
$datee
bash: datee: command not found
$alias ls
alias... (2 Replies)
Discussion started by: ungalnanban
2 Replies
5. Shell Programming and Scripting
I need to print some mandatory instructions if something fails in the script. I am using set -e to check and exit the script if some scripts/commands return non zero exit code. Is there any way to print these instructions with set command?? (0 Replies)
Discussion started by: Shribigb
0 Replies
6. UNIX for Dummies Questions & Answers
can any one tell me how to set the font size in unix? (14 Replies)
Discussion started by: sachin.gangadha
14 Replies
7. AIX
I need to be able to change the font, pitch, and orientation when printing a text flat file. Any suggestions appreciated. (2 Replies)
Discussion started by: mad_dog
2 Replies
8. UNIX for Advanced & Expert Users
Hi,
I want to know about the characters that are available in the Symbol.pfa font file. I am using freetype library to render the fonts in Windows. What encoding should I provide to get all the symbols in the Symbol font file?
It would be very helpful if i get all the characters in this... (0 Replies)
Discussion started by: pushpagiri
0 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Now I am printing my ps file as follows:
lp -d n40prt0234 $i
where $i is the file name passed in a loop.
I need to change the file's print fonts to "Verdana and the Size = 10"
how to change? (2 Replies)
Discussion started by: redlotus72
2 Replies
LP(1) General Commands Manual LP(1)
NAME
lp - printer output
SYNOPSIS
lp [ option ... ] [ file ... ]
DESCRIPTION
Lp is a generalized output printing service. It can be used to queue files for printing, check a queue, or kill jobs in a queue. The
options are:
-d dest
Select the destination printer. If dest is list the currently available printers. In the absence of the destination is taken from
the environment variable LPDEST. Destination is the standard output. Destination is line printer port on a 386 machine.
-p proc
The given processor is invoked. The default processor is which tries to do the right thing for regular text, troff(1) output, or
tex(1) output. If no processing is desired may be specified.
-q Print the queue for the given destination. For some devices, include printer status.
-k Kill the job(s) given as subsequent arguments instead of file names for the given destination.
The remaining options may be used to affect the output at a given device. These options may not be applicable to all devices.
-c n Print n copies.
-f font
Set the font (default
-H Suppress printing of header page.
-i n Select paper input tray. n may be a number 0-9, the word man for the manual feed slot, and/or simplex or duplex to get single or
double sided output. Multiple input tray options may be specified if they are separated by commas.
-l n Set the number of lines per page to n.
-L Print pages in landscape mode (i.e. turned 90 degrees).
-m v Set magnification to v.
-n n Print n logical pages per physical page.
-o list
Print only pages whose page numbers appear in the comma-separated list of numbers and ranges. A range n-m means pages n through m;
a range -n means from the beginning to page n; a range n- means from page n to the end.
-r Reverse the order of page printing.
-x v Set the horizontal offset of the print image, measured in inches.
-y v Set the vertical offset of the print image, measured in inches.
EXAMPLES
eqn paper | troff -ms | lp -dsafari
Typeset and print a paper containing equations.
pr -l100 file | lp -l100 -fCW.8
Print a file in a small font at 100 lines per page.
lp -dstdout /dev/windows/3/window > doc.ps
Convert a bitmap to a postscript file.
SEE ALSO
lp(8)
P. Glick, ``A Guide to the Lp Printer Spooler''.
BUGS
Not all options work with all output devices. Any user can kill any job. Lp will accept jobs from BSD style lpdaemons but cannot send
jobs to such systems.
LP(1)