09-08-2010
That's fine. So is above code suitable for you?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using egrep to extract numbers from a file and storing them as variables in a script. But I am not able to do any arithmetic operations on the variables using "expr" because it stores them as char and not integers. Here is my code and the error I get. Any help will be appreciated.
#!/bin/sh... (3 Replies)
Discussion started by: emjayshaikh
3 Replies
2. Shell Programming and Scripting
Hi, I would like ask for you help for coding array operation.
array= ( a b c d e f )
I would like to remove entry "d" from my array and import the remaining entries back to the array.
Thanks. (3 Replies)
Discussion started by: phamp008
3 Replies
3. Shell Programming and Scripting
grep -o '\{1,3\}\.\{1,3\}\.\{1,3\}\.\{1,3\}' then how do i iterate the file names?? (19 Replies)
Discussion started by: ravis83
19 Replies
4. Shell Programming and Scripting
Dear Brothers and Sisters ,
If I use the command date , it will echo out today . How can I get the tomorrow date using the command date ? How to I do the date operation ?
Thanks you very much :):):):):) (1 Reply)
Discussion started by: youareapkman
1 Replies
5. Solaris
I gurus of Solaris,
I need to do a Procedure concerning in the Maintenance of Solaris Server.
What are the parameters that I must be see Periodically in a Server.
For example the space I (df -h) must be each week.- In this server exist a Database aplication (Oracle), and log's that increase or... (4 Replies)
Discussion started by: andresguillen
4 Replies
6. Shell Programming and Scripting
I have atxt file,i want to perform some operation on 3rd coulmn
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 67.780083 -3.0000000 6.9356270 0 4
... (4 Replies)
Discussion started by: shashi792
4 Replies
7. Shell Programming and Scripting
I am trying to enter a third column in this file, but the third column should that I call "Math" perform a some math calculations based on the value found in column #2.
Here is the input file:
Here is the desired output:
Output
GERk0203078$ Levir Math
Cotete_1... (5 Replies)
Discussion started by: Ernst
5 Replies
8. UNIX for Dummies Questions & Answers
I have a two files, file A and B, which have 5 columns, and each 5 columns are made up of random numbers, that means, numbers are all different.
They have same amount of lines (Both 1000 lines)
I hope to do a operation
1) 2nd column of file A - 2nd column of file B
2) 5th column of... (4 Replies)
Discussion started by: exsonic
4 Replies
9. Shell Programming and Scripting
I need to read a file line by line, then depending on the contents of each line, type in a code that will get written to an array.
The problem I have is when I ask the user to confirm the input code, if it is wrong, how do i Return to ask again?
Any thing I try increments the file to the next... (6 Replies)
Discussion started by: kcpoole
6 Replies
10. Shell Programming and Scripting
Hi Experts,
Please bear with me, i need help
I am learning AWk and stuck up in one issue.
First point : I want to sum up column value for column 7, 9, 11,13 and column15 if rows in column 5 are duplicates.No action to be taken for rows where value in column 5 is unique.
Second point : For... (12 Replies)
Discussion started by: as7951
12 Replies
LEARN ABOUT REDHAT
g32pbm
g32pbm(1) mgetty+sendfax manual g32pbm(1)
NAME
g32pbm - convert a Group 3 fax file into a portable bitmap
SYNOPSIS
g32pbm [-reversebits] [-stretch] [g3file]
DESCRIPTION
Reads a Group 3 fax file (raw or digifax) as input. If no filename is given, stdin is used. Produces a portable bitmap as output.
OPTIONS
-r Tells g32pbm to interpret bits least-significant first, instead of the default most-significant first ("-reversebits"). Some fax
modems do it one way and others do it the other way. If you get a whole bunch of "invalid code" messages (nearly one per line), try
using this flag.
-s Double each horizontal row of the fax file in the pbm file ("-stretch)". You can use this to adjust the aspect ratio of a "normal
resolution" fax file to match that of a "fine resolution" fax file. This might not seem like it belongs here, but it's much faster
than using pnmscale|pgmtopbm later. -s is activated automatically if the file is specified on the command line and its name starts
with "fn..." (fax/normal).
-l(aserjet)
Instead of a portable bitmap (PBM), output HP laserjet files, suitable for direct printing on a HP laserjet or desjket.
-d <dpi>
Scale output to <dpi> dots per inch before printing. Normal FAX resolution is 204x196 dpi (fine mode), or 204x98 dpi (normal mode).
In LaerJet mode, only the values 75, 150 and 300 are allowed for <dpi>.
-t turn image by 90 degrees clockwise. Multiple -t commands increase angle, that is, -t -t will turn it upside down, and so on.
-? Print a short command syntax.
REFERENCES
The standard for Group 3 fax is defined in CCITT Recommendation T.4.
BUGS
g32pbm could be smarter about the image width, at the moment, the maximum width is 1728 pixels, and the maximum height is 4300 lines.
Everything bigger is just cut off.
Only 'raw' pbm files are created.
Scaling is too slow.
Turning is too slow (and not yet fully implemented either).
SEE ALSO
pbm2g3(1), pbm(5), g3cat(1), sendfax(8), mgetty(1)
AUTHOR
g32pbm is Copyright (C) 1993 by Gert Doering, <gert@greenie.muc.de>. It is similar to the g3topbm program in Jef Poskanzers pbmplus pack-
age, but it's a complete re-write. No code is copied.
greenie 27 Oct 93 g32pbm(1)