An open API service indexing awesome lists of open source software.

https://github.com/vegarsti/slice

command line utility for slicing lines, alternative to cut
https://github.com/vegarsti/slice

command-line golang unix

Last synced: 11 months ago
JSON representation

command line utility for slicing lines, alternative to cut

Awesome Lists containing this project

README

          

# slice


Latest Release
Build Status
Go ReportCard

Like [`cut`](https://en.wikipedia.org/wiki/Cut_(Unix)), but with the negative slicing we know and love.

## Installation

```sh
$ go get "github.com/vegarsti/slice"
```

## Usage

```sh
$ echo "hello world" | slice 1:-1
ello worl

$ echo "hello\nyou" | slice 1:-1
ell
o

$ echo "hello\nyou" | slice 1:
ello
ou

$ echo "hello\nyou" | slice :2
he
yo
```