Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

suzaku/rose

Open more actions menu

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

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.