Hi all,
I have a issue... Is it possible to compare integer value with decimal value.
If it is not possible,then how can i compare 2 decimal values in born shell.thanks! (3 Replies)
Hi All,
i am doung sup up of amount column in my file.
tot_val=`awk '{a+=$0}END{printf "%.5f\n",a}' amount`
then i have a checksum in footer.
chk_sum=`tail -1 $FILE_NAME | cut -d~ -f7 | cut -c2-`
but the problem is while executing 1st command i am getting :
27720.75000
& while... (3 Replies)
How can I compare two integer values which is stored in char pointers?
suppose I have char *a and char *b having values 10 and 20. how can i find the shorter value? (1 Reply)
Please see how can I do this:
File A (three columns):
X1,Y1,1.01
X2,Y2,2.02
X3,Y3,4.03
File B (three columns):
X1,Y1,1
X2,Y2,2
X3,Y3,4.0005
Now I have to compare file A and B based on the integer part of column 3. Means first 2 rows should be OK and the third row should not satisfy... (12 Replies)
i need to do camparisions like the below.
For the case when first=10 and second=9.9 the scripts displays process failed.
I need to be able to convert the values to integer before doing the comparision.
Like 9.9 should be rounded over to 10 before doing comparision.
Please advice how can... (3 Replies)
Hi all,
I am posting the thread similar to previous posts but here my scenario is i need to know what the files size from start date. Here end time file size will be 0. Also need to know how much time does it took to complete in seconds.
log file:
Name1 START 11:36:45 ... (5 Replies)
I am running some commands and I am trying to get an output into a variable. I am having problem when I try to put that value in while loop, it says integer value expected. What's the best way to accomplish this
remaining=$(symclone -sid XXX -f Clone_test query | grep MB | awk '{print... (1 Reply)
Hi,
I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file.
File1 - file2 = file3
wc -l file1.txt
58112
wc -l file2.txt
55260
head -5 file1.txt
101214200123
101214700300
101250030067
101214100500... (10 Replies)
Hi,
0.23 2.94% 0.00 0.00% 17.8G 55.7% 19.6G 40.9% 630 0.00%
0.06 0.77% - - 7524M 22.9% 15.6G 32.6% - -
From the above sample output. I need to compare whether the 6th field is more than 10G..if so print the entire line. Here the 6th field is memory
TIA (5 Replies)
Discussion started by: Sumanthsv
5 Replies
LEARN ABOUT X11R4
xpsetimageresolution
XpSetImageResolution(3Xp) XPRINT FUNCTIONS XpSetImageResolution(3Xp)NAME
XpSetImageResolution - Sets the resolution for subsequent PutImage requests
SYNOPSIS
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
Bool XpSetImageResolution ( display, print_context, image_res, prev_res_return )
Display * display ;
XPContext print_context ;
int image_res ;
int * prev_res_return ;
ARGUMENTS
- display
Specifies a pointer to the Display structure.
- print_context
Specifies the print context on which to set the resolution.
- image_res
Specifies the image resolution in pixels per inch.
- prev_res_return
Returns the previous image resolution in pixels per inch.
DESCRIPTION
XpSetImageResolution returns True if the printer server allowed the resolution to be set, otherwise False is returned.
XpSetImageResolution sets the resolution for subsequent PutImage requests to the screen of the specified print context. If the return value
is False, then the print server does not support image scaling for the particular resolution given the current configuration of the
printer, and the application is responsible for any desired scaling. If the return value is True, then the contents of any subsequent
PutImage request to a Pixmap or to a Window on the screen of the specified print context will automatically be scaled as part of the PutIm-
age request. The scale factor is:
default_printer_resolution / image_res
Where default_printer_resolution is the current value of that page attribute. Only the image itself is scaled (meaning the effective width
and height of the image change), the dst-x and dst-y parameters to PutImage are not altered.
As a special case, a value of zero for image_res resets the resolution to automatically track the printer resolution; in this case (which
is also the default setting for a newly created print context), subsequent images will not be scaled.
If the return value is True and prev_res_return is a non-NULL pointer, then the previous image resolution that was set for the print con-
text is stored in prev_res_return.
XpSetImageResolution returns False immediately if image_res is negative or greater than 65535.
DIAGNOSTICS
XpBadContext A valid print context-id has not been set prior to making this call.
X Version 11 libXp 1.0.0 XpSetImageResolution(3Xp)