https://github.com/thomasheller/intersect
Intersection between files
https://github.com/thomasheller/intersect
Last synced: about 2 months ago
JSON representation
Intersection between files
- Host: GitHub
- URL: https://github.com/thomasheller/intersect
- Owner: thomasheller
- License: mit
- Created: 2017-04-15T06:00:07.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-15T06:01:03.000Z (about 8 years ago)
- Last Synced: 2025-02-13T14:40:19.549Z (4 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# intersect
intersect prints the lines found in all given files, sorted.
```sh
$ go get github.com/thomasheller/intersect
$ cat a.txt
123
foo
bar
baz
$ cat b.txt
baz
bar
123
456
$ cat c.txt
456
foo
bar
baz
$ intersect a.txt b.txt c.txt
bar
baz
$ intersect a.txt b.txt
123
bar
baz
$ intersect a.txt c.txt
bar
baz
foo
$ intersect b.txt c.txt
456
bar
baz
```