03-12-2011
I have modified your post to remove a number of inappropriate words.
Please read the
rules, which you agreed to when you registered, if you have not already done so.
Thank You.
The UNIX and Linux Forums.
10 More Discussions You Might Find Interesting
1. AIX
Hello all!
I'm having a hard time with an IBM RS/6000 J40 machine.
I'm trying to install AIX 5.2L on it but, up to now, I can't make it boot from the CDROM.
I can go to the configuration menu, but, I don't know hot to point to my SCSI CDROM in order to boot from it.
Do any of you have an... (2 Replies)
Discussion started by: MCM
2 Replies
2. UNIX for Advanced & Expert Users
Hello all!
This is my first post here!
I'm having a hard time with an IBM RS/6000 J40 machine.
I'm trying to install AIX 5.2L on it but, up to now, I can't make it boot from the CDROM.
Do any of you have an ideia?
Thank you for your time! (3 Replies)
Discussion started by: MCM
3 Replies
3. Shell Programming and Scripting
So, HostB has a SSH trust via pre-shared keys from HostA.
HostA> ssh HostB hostname
HostB
HostA> ssh HostB echo `hostname`
HostA
HostA> ssh HostB 'echo `hostname`'
`hostname`
HostA> ssh HostB "echo `hostname`"
HostA
HostA> ssh HostB echo $PS1
user@HostA:$PWD
HostA> ssh HostB... (12 Replies)
Discussion started by: Wrathe
12 Replies
4. Shell Programming and Scripting
I am using GNU sed but this does not output "what". Why?
HEY=$(echo "hey 70.70.70.70:21 what: " | sed -nr 's/.*(70.70.70.70\|71.71.71.71):(21\|22\|115\|443\|989\|990) (.*):.*/\3/p')
echo $HEY (2 Replies)
Discussion started by: limmer
2 Replies
5. Shell Programming and Scripting
Hi,
I am cutting data from a fixed length test file and then writing out a new record using the echo command, the problem I have is how to stop multiple spaces from being written to the output file as a single space.
Example:
cat filea | while read line
do
field1=`echo $line | cut -c1-2`
... (6 Replies)
Discussion started by: dc18
6 Replies
6. UNIX for Dummies Questions & Answers
one more question. I want to skip the first echo statement the first time the loop gets entered
while #keep prompting for more funds until selling price achieved
do
echo "You have inserted a total of ${total_inserted} cents. Please insert $total_remaining more cents"
echo... (1 Reply)
Discussion started by: danieldcc
1 Replies
7. Shell Programming and Scripting
Hey im new in this...anything will be helpful...
The user will input the word or phrase .... I want to search the user input in file (by lines) but not all then with this line search on another file ( with the specific line) and show to the user.
Example:
file1.txt
=======
a
aa
aaa... (2 Replies)
Discussion started by: Sundown
2 Replies
8. UNIX for Dummies Questions & Answers
Is there any way in a script to print out the commands being ran? In DOS script, there is the "@echo on" and "@echo off".
so I have a script like this:
#!/bin/ksh
echo "hello there. moving files."
<turn on echoing here>
cp thisfile.txt thatfile.txt
cp whatfile.prop whyfile.prop
<turn... (2 Replies)
Discussion started by: ronron5477
2 Replies
9. Web Development
Hi all,
I am trying to find a rewrite rule that can help me with the following situation.
So I am currently on a page which has a URL:
http://www.test.mobile.com/#!/shop/phones/max-plus/features/
Now when I hover over a certain link, I can see that it will goto:
<a... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies
10. UNIX for Beginners Questions & Answers
version info : Fedora 28 (Kernel version: 4.16.12-300)
shell : bash
Using echo command , if I redirect a text like "Chocolate" to a file , all the contents in the file are overwritten as shown below.
# cat /tmp/someTest
Hello world
One more Hello world
myLine3
# echo... (4 Replies)
Discussion started by: kraljic
4 Replies
LEARN ABOUT OSF1
ppmtosixel
ppmtosixel(1) General Commands Manual ppmtosixel(1)
NAME
ppmtosixel - convert a portable pixmap into DEC sixel format
SYNOPSIS
ppmtosixel [-raw] [-margin] [ppmfile]
DESCRIPTION
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.
OPTIONS
-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.
-margin
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.
PRINTING
Generally, sixel files must reach the printer unfiltered. Use the lpr -x option or cat filename > /dev/tty0?.
BUGS
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.
SEE ALSO
ppm(5)
AUTHOR
Copyright (C) 1991 by Rick Vinci.
26 April 1991 ppmtosixel(1)