Crates.io | samesame |
lib.rs | samesame |
version | 0.1.1 |
source | src |
created_at | 2020-07-09 21:08:43.465472 |
updated_at | 2020-07-09 21:21:20.634402 |
description | Match lines from one file in another file. |
homepage | https://gitlab.com/elbartus/samesame |
repository | https://gitlab.com/elbartus/samesame |
max_upload_size | |
id | 262990 |
size | 15,964 |
samesame
lets you match lines from one file in another file!
Be sure to have cargo installed on your machine and the cargo
binary path added to your shells $PATH
variable.
Installation is then as easy as:
cargo install samesame
samesame var/1 var/2
samesame --report var/1 var/2
samesame --verbose var/1 var/2
samesame --all var/1 var/2
samesame --invert var/1 var/2
samesame 0.1.0
Match lines from one file in another file.
USAGE:
samesame [FLAGS] <file1> <file2>
FLAGS:
-a, --all Only returns exit code 0, if all lines of file1 are found in file2
-e, --exact Only matches if lines in file1 and file2 are exactly the same otherwise searches in the whole line
of file2
-h, --help Prints help information
-i, --invert If true, print's out the lines of file1, which didn't have a match in file2
-q, --quiet If true, does not print out anything on stdout
-r, --report Prints out a report in the end. Doesn't do anything, if --quiet is also set
-V, --version Prints version information
-v, --verbose Shows line information from file1 and file2 for each match. Doesn't do anything, if --quiet is also
set
ARGS:
<file1> Path to file 1
<file2> Path to file 2