rtee

command module
v0.0.0-...-c784b3c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 3 Imported by: 0

README

Rtee GoDoc Go Report Card

Like tee but with automatic process substitution.

Screenshots

$ rtee -h
rtee - Like tee but with automatic process substitution.

        Options:
  -dst value
        secondary output file or URL (default stdout)

$ ls | rtee pbcopy
LICENSE
README.md
app
go.mod
go.sum
main.go

$ pbpaste
LICENSE
README.md
app
go.mod
go.sum
main.go

$ ls | rtee -dst output.txt pbcopy

$ cat output.txt
LICENSE
README.md
app
go.mod
go.sum
main.go

Installation

First install Go.

If you just want to install the binary to your current directory and don't care about the source code, run

GOBIN="$(pwd)" GOPATH="$(mktemp -d)" go get github.com/carlmjohnson/rtee

TODO

  • Option to run arguments through shell
  • Multiple destinations

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL