10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In order to clean file from html tags i used the following
sed 's/<*>//g' filename
Right now i need to do the same from php script so i have to use pcre. How to convert? (1 Reply)
Discussion started by: urello
2. UNIX for Dummies Questions & Answers
Hey guys, thanks for lookin....my question is I want to create a macro on HPUX to SFTP a .xls to my Windows Server....I have exstensively searched and all I can find is What a macro is not how to create one.
Reasoning for having a macro is to put it in a file creation script and have it run at... (7 Replies)
Discussion started by: DStewart
3. UNIX for Dummies Questions & Answers
Can I create a macro in UNIX? If so where do I find out how? (1 Reply)
Discussion started by: JD_Sal
4. UNIX for Dummies Questions & Answers
I think this is a basic question. I'm not very familiar with this.
I'm trying to round a number up and round a number down. From what I have read this can be done using POSIX. I have tried to to use this, but i'm getting errors:
... (0 Replies)
Discussion started by: WongSifu
5. UNIX for Dummies Questions & Answers
What I am trying to do is assign a F-key a macro to save a file in vi and display said file in firefox. The details are as follows:
I am using a Win 7 laptop with and ssh program to log into a unix system.
What I am trying to do is figure out how to bring up the firefox... (1 Reply)
Discussion started by: csharp100
I think there is no problem to use any macro in a new macro definishion, but I have a problem with that.
I can not understand why?
I have a *.mak file that inludes file with many definitions and rules.
One of the... (2 Replies)
Discussion started by: alex_5161
In my application I have some number c files. In each of the file the following line will be the first statement.
#ident "@(#) set.c 18.104.22.168 05/15/01 17:06:32"
I would like to know what is the use of the above statement.
Sarwan (1 Reply)
Discussion started by: sarwan
Can i define a macro for a function of 10 LOC. (9 Replies)
Discussion started by: bankpro
I'm upleveling code from 10.20 to 11.11....but I'm running into a problem in which the USRSTACK macro does not seem to be defined in 11.11. Has anybody else experienced this/fixed it/worked around it? Is there a different macro I should be using instead?
Thanks for any info you can provide!! (1 Reply)
Discussion started by: jalburger
10. UNIX for Dummies Questions & Answers
I'm having a problem with a macro i put in my .exrc file.
Here's what I put: map #I ^[
^ [ is control-v and the escape key.
It places a # a the beginning of a line by simply hitting the # on the keyboard. Problem is, now when I hit "o" or "O" to move up or down a line, it places a # at... (1 Reply)
Discussion started by: Atama
ppmtosixel(1) General Commands Manual ppmtosixel(1)
ppmtosixel - convert a portable pixmap into DEC sixel format
ppmtosixel [-raw] [-margin] [ppmfile]
Reads a portable pixmap as input. Produces sixel commands (SIX) as output. The output is formatted for color printing, e.g. for a DEC
LJ250 color inkjet printer.
If RGB values from the PPM file do not have maxval=100, the RGB values are rescaled. A printer control header and a color assignment table
begin the SIX file. Image data is written in a compressed format by default. A printer control footer ends the image file.
-raw If specified, each pixel will be explicitly described in the image file. If -raw is not specified, output will default to com-
pressed format in which identical adjacent pixels are replaced by "repeat pixel" commands. A raw file is often an order of magni-
tude larger than a compressed file and prints much slower.
If -margin is not specified, the image will be start at the left margin (of the window, paper, or whatever). If -margin is speci-
fied, a 1.5 inch left margin will offset the image.
Generally, sixel files must reach the printer unfiltered. Use the lpr -x option or cat filename > /dev/tty0?.
Upon rescaling, truncation of the least significant bits of RGB values may result in poor color conversion. If the original PPM maxval was
greater than 100, rescaling also reduces the image depth. While the actual RGB values from the ppm file are more or less retained, the
color palette of the LJ250 may not match the colors on your screen. This seems to be a printer limitation.
Copyright (C) 1991 by Rick Vinci.
26 April 1991 ppmtosixel(1)