01-19-2011
Quote:
Originally Posted by
fpmurphy
Is this homework?
No its not, its just for my personal use :-).
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
Discussion started by: skammer
2 Replies
2. Windows & DOS: Issues & Discussions
I am trying to find the difference between the sum and join commands in
Unix. If there is one, what is it? and what they do :cool: (1 Reply)
Discussion started by: Darwin Rodrigue
1 Replies
3. Shell Programming and Scripting
Dear Experts
I am trying to find if it is possible to combine unix commands in awk program. For example if it is possible embed rm or ls or any unix command inside the awk program and while it is reading the file besides printing be able to do some unix commands. I am thinking may be just print... (2 Replies)
Discussion started by: Reza Nazarian
2 Replies
4. Shell Programming and Scripting
Hi All,
I try to use the unix commands inside awk and couldnt succeed .
Please help me how to achieve it.
Regards,
Sukumar. (7 Replies)
Discussion started by: jerome Sukumar
7 Replies
5. UNIX for Dummies Questions & Answers
Hi to all,
I have just started to learn Unix, and am having problems trying to understand the following two unix commands. if any1 could help i would greatly appreciate it.
1) ls -s | sort -nr | head -3
2) man -k c | grep -i ' c* ' | grep 1
i understand that for 1) the command will... (7 Replies)
Discussion started by: Vn3050
7 Replies
6. UNIX for Dummies Questions & Answers
I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked.
Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies
7. UNIX for Dummies Questions & Answers
Hello everybody,
I am a newbie in Unix/Linux so please excuse me!:o
Could somebody please explain to me what the following Unix commands do or mean:
ls -al | grep "*.c" | wc -l >> log.txt
and
ps -el | grep "*tty*" | uniq | sort > log.txt
I know 'grep' means to find a text... (4 Replies)
Discussion started by: kev_1234
4 Replies
8. Fedora
Hi, I have the following file called addresses, (it is a large file i have only copy and pasted few of the data below) and I am wanting to write a command so it will Find the ratio of mobile (07....) to land line (01....) telephone numbers?
then find the most popular first name and list the... (2 Replies)
Discussion started by: tina_2010
2 Replies
9. Shell Programming and Scripting
can you please let me know what does the below awk command does.
awk 'NR>2{printf "%-30s %-15s\n", $1, !($4)?$2:$4;}' result.txt (1 Reply)
Discussion started by: ramkumar15
1 Replies
10. Shell Programming and Scripting
I have developed a bash shell script which works perfectly fine when any bash shell is in use except SunOS.
There are two commands that is not compatible.
#!/usr/bin/env bash
Problem
1. The awk command below does not work for SunOS
Requirement
We extract Oracle EBS tables into text... (9 Replies)
Discussion started by: uuuunnnn
9 Replies
ppmtopgm(1) General Commands Manual ppmtopgm(1)
NAME
ppmtopgm - convert a portable pixmap into a portable graymap
SYNOPSIS
ppmtopgm [ppmfile]
DESCRIPTION
Reads a portable pixmap as input. Produces a portable graymap as output. The output is a "black and white" rendering of the original
image, as in a black and white photograph. The quantization formula used is .299 r + .587 g + .114 b.
Note that although there is a pgmtoppm program, it is not necessary for simple conversions from pgm to ppm , because any ppm program can
read pgm (and pbm ) files automatically. pgmtoppm is for colorizing a pgm file. Also, see ppmtorgb3 for a different way of converting
color to gray. And ppmdist generates a grayscale image from a color image, but in a way that makes it easy to differentiate the original
colors, not necessarily a way that looks like a black and white photograph.
QUOTE
Cold-hearted orb that rules the night
Removes the colors from our sight
Red is gray, and yellow white
But we decide which is right
And which is a quantization error.
SEE ALSO
pgmtoppm(1),ppmtorgb3(1),rgb3toppm(1),ppmdist(1),ppm(5),pgm(5)
AUTHOR
Copyright (C) 1989 by Jef Poskanzer.
10 April 2000 ppmtopgm(1)