NAME
setop - Set operations (union, intersection, difference) on lines of files
VERSION
version 0.02
SYNOPSIS
setop [OPTION]... FILE FILE ...
DESCRIPTION
setop
treats files as a sets of lines, and performs operations between the sets.
OPTIONS
--op=S
Pick operation. Known operations are: union (return lines from the first file and others, duplicate removed, order preserved), intersect (return common lines found in every file, order preserved),
diff
(return lines found in the first file but not the second),symdiff
(short for "symetric difference", return lines found in either file but not both).--union
Shortcut for
--op union
.--intersect
Shortcut for
--op intersect
.--diff
Shortcut for
--op diff
.--symdiff
Shortcut for
--op symdiff
.
EXIT CODES
0 on success.
255 on I/O error.
99 on command-line options error.
TODO
--ignore-case, -i
--record-separator
HISTORY
I first wrote fileop
in Ruby in 2003, since Ruby has nice +
and -
operators for arrays.
Rewrote in Perl in 2014. Script renamed to setop
, changed command-line options a bit, now preserves order of lines.
SEE ALSO
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/App-setop.
SOURCE
Source repository is at https://github.com/sharyanto/perl-App-setop.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-setop
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.