Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sshaw/pipeopts

Getopts for process pipelines
https://github.com/sshaw/pipeopts

arguments builtin c getopt processing-pipelines

Last synced: 15 days ago
JSON representation

Getopts for process pipelines

Awesome Lists containing this project

README

        

# pipeopts

Getopts for process pipelines

## Synopsis

# list recently modified files
lr() {
pipeopts "adl|n:c:" "$*"
ls -t ${PIPEOPTS[0]} | head ${PIPEOPTS[1]}
}

# now run it
lr -aln25

## Description

`pipeopts` is a Bash builtin that helps you pass arguments to process pipelines.

## Etc...

Internal Bash functions, useful when writing loadable builtins: https://gist.github.com/sshaw/8017032