Skip to content

sshaw/pipeopts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages