Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.07 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.07 KB

RoSe build Go Report Card

RoSe is a command line tool that allows you to treat files as sets of rows and perform set operations on them.

The name RoSe comes from RowSet.

Usage

Currently, 3 set operations are implemented:

  1. Intersection
  2. Union
  3. Subtraction

All operations assume that the files are sorted in alphabetical order, so that we can work with big files efficiently.

Intersection

# What's common between two files?
rose and file1 file2

# List common files in two directories.
rose and <(ls -a /tmp | sort) <(ls -a ~ | sort)

Union

# Everything that exist in either of the two files
rose or file1 file2

Subtraction

# What exist in the first file but not in the second?
rose sub file1 file2

Installation

Homebrew

brew install suzaku/homebrew-rose/rose

Go

go install github.com/suzaku/rose@latest