Skip to content

Instantly share code, notes, and snippets.

View hrugani's full-sized avatar

Hélio Rugani Brandão hrugani

  • HRB Systems
  • Brazil
View GitHub Profile
@hrugani
hrugani / piping.go
Created July 30, 2019 04:01 — forked from kylelemons/piping.go
piping exec.Cmd in golang (example sorts all regular files under a directory by their extension)
package main
import (
"bytes"
"exec"
"log"
"os"
)
// Pipeline strings together the given exec.Cmd commands in a similar fashion