Skip to content
/ rose Public

A command line tool that allows you to treat rows in files as set elements.

License

Notifications You must be signed in to change notification settings

suzaku/rose

Repository files navigation

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

About

A command line tool that allows you to treat rows in files as set elements.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages