Unix and Linux Discussions Tagged with combine |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
17 |
167,228 |
Shell Programming and Scripting |
|
|
|
2 |
8,020 |
UNIX for Beginners Questions & Answers |
|
|
|
21 |
8,781 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
8,101 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,992 |
Solaris |
|
|
|
6 |
2,213 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
1,390 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
2,571 |
Shell Programming and Scripting |
|
|
|
3 |
12,143 |
Shell Programming and Scripting |
|
|
|
18 |
9,362 |
Shell Programming and Scripting |
|
|
|
2 |
5,330 |
Shell Programming and Scripting |
|
|
|
3 |
2,185 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
3,694 |
Shell Programming and Scripting |
|
|
|
2 |
3,018 |
Shell Programming and Scripting |
|
|
|
2 |
2,568 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
0 |
1,094 |
Software Releases - RSS News |
|
|
|
0 |
1,044 |
Software Releases - RSS News |
|
|
|
0 |
1,078 |
Software Releases - RSS News |
|
|
|
0 |
1,032 |
Software Releases - RSS News |
|
|
|
0 |
2,316 |
OS X Support RSS |
|
|
|
2 |
1,965 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,315 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
1 |
5,806 |
HP-UX |
|
|
|
0 |
1,016 |
Software Releases - RSS News |
|
|
|
3 |
11,635 |
Shell Programming and Scripting |
|
|
|
4 |
3,092 |
Shell Programming and Scripting |
|
|
|
7 |
8,216 |
UNIX for Advanced & Expert Users |
|
|
|
13 |
15,950 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,438 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
9,301 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,418 |
UNIX for Dummies Questions & Answers |
|
|
|
10 |
7,145 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,552 |
UNIX for Dummies Questions & Answers |
COMBINE(1) COMBINE(1)
NAME
combine - combine sets of lines from two files using boolean operations
SYNOPSIS
combine file1 and file2
combine file1 not file2
combine file1 or file2
combine file1 xor file2
_ file1 and file2 _
_ file1 not file2 _
_ file1 or file2 _
_ file1 xor file2 _
DESCRIPTION
combine combines the lines in two files. Depending on the boolean operation specified, the contents will be combined in different ways:
and Outputs lines that are in file1 if they are also present in file2.
not Outputs lines that are in file1 but not in file2.
or Outputs lines that are in file1 or file2.
xor Outputs lines that are in either file1 or file2, but not in both files.
"-" can be specified for either file to read stdin for that file.
The input files need not be sorted, and the lines are output in the order they occur in file1 (followed by the order they occur in file2
for the two "or" operations). Bear in mind that this means that the operations are not commutative; "a and b" will not necessarily be the
same as "b and a". To obtain commutative behavior sort and uniq the result.
Note that this program can be installed as "_" to allow for the syntactic sugar shown in the latter half of the synopsis (similar to the
test/[ command). It is not currently installed as "_" by default, but you can alias it to that if you like.
SEE ALSO
join(1)
AUTHOR
Copyright 2006 by Joey Hess <joey@kitenet.net>
Licensed under the GNU GPL.
moreutils 2012-04-09 COMBINE(1)