Hello,
I want to compare two files. All records in file 2 that are not in file 1 should be output to file 3.
For example:
file 1
123
1234
123456
file 2
123
2345
23456
file 3 should have
2345
23456
I have looked at diff, bdiff, cmp, comm, diff3 without any luck! (2 Replies)
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)
I need to compare 2 diff type of files and find out the duplicate after comparing each types of files:
Type 1 file name is like: file1.abc
(the extension abc could any 3 characters but I can narrow it down or hardcode for 10/15 combinations).
The other file is file1.bcd01abc (the extension... (2 Replies)
My requiremeny is as follows,
I have two files
file a
A BONES RD,NHILL,3418,VIC
37TH PARALLEL RD,DEEP LEAD,3385,VIC
4 AK RD,OAKEY,4401,QLD
A & J FARRS RD,BARMOYA,4703,QLD
A B PATTERSON DR,ARUNDEL,4214,QLD
A BLAIRS RD,BUCKRABANYULE,3525,VIC
file b
A BONES... (12 Replies)
Hi I have a file like this
Record 182: Rejected
No Data found
Record 196: Rejected
File Not Found
Record 202: Rejected
Invalid argument
Record 212: Rejected
Bad data
My requirement is to search for the value "Record" and if found, then return the next line of it.
So,... (3 Replies)
Hi,
In the Unix Box, I have a situation, where there is folder name called "Projects" and in that i have 20 Folders S1,S2,S3...S20. In each of the Folders S1,S2,S3,...S20 , there is a same name folder named "MP". So Now, I want to get all the files in all the "MP" Folders and write all those... (6 Replies)
Hi All,
I am using the below command to find the latest file in a dir:
ls -tr $v_sftphomedir/$v_sourcefile |tail -1
or
ls -t1 $v_sftphomedir/$v_sourcefile |head -1
and the outpur returned is below:
/home/cobr_sftp/var/controllingload/Backup/Dbrwds_Div_1796050246.txt
I need only the... (5 Replies)
Hi i have to find the shell script that contain the word
PROC__TO_UPDATE
SEARCH SHOULD BE INSENSITIVE AND SCRIPT CAN BE DEPLOYED IN ANY PATH.
I am on Solaris. (27 Replies)
Guys i have 3 files,
but i want to compare and diff only the 2nd column
path=`/home/whois/doms`
for i in `cat domain.tx`
do
whois $i| sed -n '/Registry Registrant ID:/,/Registrant Email:/p' > $path/$i.registrant
whois $i| sed -n '/Registry Admin ID:/,/Admin Email:/p' > $path/$i.admin... (10 Replies)
Discussion started by: kenshinhimura
10 Replies
LEARN ABOUT OSF1
bdiff
bdiff(1) General Commands Manual bdiff(1)NAME
bdiff - Finds differences in large files
SYNOPSIS
bdiff file1 file2 [number] [-s]
bdiff - file2 [number] [-s]
bdiff file1 - [number] [-s]
The bdiff command compares file1 and file2 and writes information about their differing lines to standard output. If either filename is -
(dash), bdiff reads standard input.
OPTIONS
Suppresses error messages. (May either precede or follow the number argument if it is specified.)
DESCRIPTION
The bdiff command uses diff to find lines that must be changed in two files to make them identical (see the diff command). Its primary
purpose is to permit processing of files that are too large for diff.
The bdiff command ignores lines common to the beginning of both files, splits the remainders into sections of number lines, and runs diff
on the sections. The output is then processed to make it look as if diff had processed the files whole.
If you do not specify number, a system default is used. In some cases, the number you specify or the default number may be too large for
diff. If bdiff fails, specify a smaller value for number and try again.
Note that because of file segmenting, bdiff does not necessarily find the smallest possible set of file differences. In general, although
the output is similar, using bdiff is not the equivalent of using diff.
NOTES
The diff command is executed by a child process, generated by forking, and communicates with bdiff through pipes.
It should not normally be necessary to use this command, since diff can handle most large files.
EXIT STATUS
No differences. Differences found. An error occurred.
SEE ALSO
Commands: diff(1), diff3(1)bdiff(1)