But now there are more exceptions to consider, for example, are the number of A lines allowed to differ and there can be more X lines in file1 than there are in file2 and vice versa. So the script would need to be improved..
This User Gave Thanks to Scrutinizer For This Post:
Hi,
I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern.
Note:These are the samples of two files,but i can have more... (2 Replies)
Hi,
I have two files A.txt and B.txt. And i have the following attributes in both the files.
<date and time> <a unique id>
For eg:
<2007 May 30 20:29:36:034 GMT> <ID1> in A.txt
<2007 May 30 20:42:36:038 GMT> <ID1> in B.txt
Now, i need to find the time difference... (0 Replies)
Hi,
i'm trying to compare two directories in Unix.
I need a recursive search ie my shell script should also compare common files in those two directory and so on...
any clues.. ?? (2 Replies)
Dear All,
I have requirement like this:
I have 2 camma seperated files
file1:
1,aaa,bbb,ccc,
2,bbb,ccc,ddd,
3,ccc,ddd,eee,
file2:
1,aaa,bbb,ccc,
2,bbb,ddd,ddd,
3,ccc,ddd,eee,
my requirement is I should get message in the out put like:
There is a difference in 3 rd filed in... (2 Replies)
Hi,
I have two files
one with 12486 lines
second one with 13116
As per the comparsion between two files the count have 630 difference
I used diff command to find the difference between two files but it's not understandable
could any one suggest any command to get 630 records in a new... (4 Replies)
Hi,
My date is coming as
STARTDATE=Sun Jul 15 00:34:23 2012
ENDDATE=Sun Jul 15 00:50:04 2012I want difference between these two dates,anyone's helps will be appriciated.
Thanks
Prasoon (3 Replies)
I have a file that has multiple lines, of grouped data, that typically all have the same values in the 1st field, however, I would like to search the 1st field for any differences and set a flag to use in an "if" statement to run some other routine.
An example of the typical file is below,... (2 Replies)
Legends,
I have a requirement to run the script exactly after one hour of completion of dependent script.
Eg: Script B should run after one hour on the completion of Script A.
I got the time stamps using following variables. these scripts runs in autosys
> DATE=`date +%H:%M`
>... (4 Replies)
Hi,
Can anybody help me in finding the difference between two array elements with the help of code pls.
purge=("Purge Concurrent Request and/or Manager Data" "Purge Signon Audit data" "Purge Obsolete Workflow Runtime Data" "Purge Logs and Closed System Alerts")
purge_1=("Purge Obsolete... (3 Replies)
Hi,
I have two files which look like this
cat waitstate.txt
18.2
82.1
cat gostate.txt
5.6
5.8
6.1
6.3
6.6
6.9
7.2
7.5 (4 Replies)
Discussion started by: jamie_123
4 Replies
LEARN ABOUT MINIX
pnmpsnr
pnmpsnr(1) General Commands Manual pnmpsnr(1)NAME
pnmpsnr - compute the difference between two portable anymaps
SYNOPSIS
pnmpsnr [pnmfile1] [pnmfile2]
DESCRIPTION
Reads two PBM, PGM, or PPM files, or PAM equivalents, as input. Prints the peak signal-to-noise ratio (PSNR) difference between the two
images. This metric is typically used in image compression papers to rate the distortion between original and decoded image.
If the inputs are PBM or PGM, pnmpsnr prints the PSNR of the luminance only. Otherwise, it prints the separate PSNRs of the luminance, and
chrominance (Cb and Cr) components of the colors.
The PSNR of a given component is the ratio of the mean square difference of the component for the two images to the maximum mean square
difference that can exist betwee any two images. It is expressed as a decibel value.
The mean square difference of a component for two images is the mean square difference of the component value, comparing each pixel with
the pixel in the same position of the other image. For the purposes of this computation, components are normalized to the scale [0..1].
The maximum mean square difference is identically 1.
So the higher the PSNR, the closer the images are. A luminance PSNR of 20 means the mean square difference of the luminances of the pixels
is 100 times less than the maximum possible difference, i.e. 0.01.
SEE ALSO pnm(5)
04 March 2001 pnmpsnr(1)