i have 2 files
file 1---------> hello
file 2---------> hello world
is there any command that we find the diff b/w two files and gives the ans as what is not matched with file 2.
diff file 1 file 2
here the desired o/p should be: world
as "world" is not found in file 1. (2 Replies)
I know the basic difference between .pm and .pl files. But wat puzzles me is when to go for creating a module and when to create .pl files.Based on wat criteria we sholud decide to make a function whcih implements a common functionality as module or a .pl file ?? (3 Replies)
Hi All,
I need your help to find out the difference between 3 files.
How can i get the output which says that FILE2 contains additional (YYY,900,100) compare to FILE1 and FILE3 contains addition record (ZZZ,904,908) compare to FILE1?
I have tried using diff3 command, but was not able to get... (2 Replies)
HI Folks,
sorry if it is a naive question.
i have two files . "file1.txt" & "file2.txt"
contents in files:
file1.txt file2.txt
-------- ---------
1 ... (2 Replies)
i have two files A and B and i want the difference to be printed in file C
as in example below
File A
10E32E7BCC5881DDB6||002878|1|1|
10E32E7BCC5881DDB7||002878|1|1|
10E32E7BCC5881DDB8||002878|1|1|
10E32E7BCC5881DDB9||002878|1|1|
File B
10E32E7BCC5881DDB1||002878|1|1|... (4 Replies)
I need the get the difference between 2 files and the result, I need to output it to an other file
file1
1
1
2
file2
1
1
2
3
Result....File3=3
used diff file1 file2 > file3 ( not working as expected)..Exact requirement..I have 2 flatfiles to compare and load only the difference in a... (0 Replies)
Hi all,
I have problem in finding the difference. suppose i have two file
file1 file2
1xyz 1xyz
1asd 1xyz
1asd 1abc
2adf 1asd
3asd 2abd
4abc 2adf
3asf
I need to... (7 Replies)
I have two file as given below which shows the ACL permissions of each file. I need to compare the source file with target file and list down the difference as specified below in required output. Can someone help me on this ?
Source File
*************
# file: /local/test_1
# owner: own
#... (4 Replies)
Discussion started by: sarathy_a35
4 Replies
LEARN ABOUT MINIX
join
JOIN(1) General Commands Manual JOIN(1)NAME
join - relational database operator
SYNOPSIS
join [-an] [-e s] [-o list] [-tc] file1 file2
DESCRIPTION
Join forms, on the standard output, a join of the two relations specified by the lines of file1 and file2. If file1 is `-', the standard
input is used.
File1 and file2 must be sorted in increasing ASCII collating sequence on the fields on which they are to be joined, normally the first in
each line.
There is one line in the output for each pair of lines in file1 and file2 that have identical join fields. The output line normally con-
sists of the common field, then the rest of the line from file1, then the rest of the line from file2.
Fields are normally separated by blank, tab or newline. In this case, multiple separators count as one, and leading separators are dis-
carded.
These options are recognized:
-an In addition to the normal output, produce a line for each unpairable line in file n, where n is 1 or 2.
-e s Replace empty output fields by string s.
-o list
Each output line comprises the fields specified in list, each element of which has the form n.m, where n is a file number and m is a
field number.
-tc Use character c as a separator (tab character). Every appearance of c in a line is significant.
SEE ALSO sort(1), comm(1), awk(1).
BUGS
With default field separation, the collating sequence is that of sort -b; with -t, the sequence is that of a plain sort.
The conventions of join, sort, comm, uniq, look and awk(1) are wildly incongruous.
7th Edition April 29, 1985 JOIN(1)