Skip to content
/ stdargs Public

Utility for building bash tools that support stdin and args.

Notifications You must be signed in to change notification settings

bas080/stdargs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

stdargs

Enhance your script by easily allowing args or stdin.

Usage

An example with stdin in the middle:

stdargs hello - world <<< 'big'
hello
big
world

Without stdin:

stdargs hello world
stdargs 'hello world'
hello
world
hello world

With only stdin:

In this case the - arg is optional.

stdargs - <<< hello
stdargs <<< world
hello
world

License

GPLv3

About

Utility for building bash tools that support stdin and args.

Resources

Stars

Watchers

Forks

Languages