Recent Changes - Search:

Basics

Languages

Tools

OS

Resources

PmWiki

pmwiki.org

edit SideBar

ScriptInputs

Bash scripts can be called with a series of inputs, either provided individually or through the use of wildcards (*).

Once within a script, it is possible to access:

$1, $2, etc.
The individual first, second, etc. inputs
$@
All the inputs together
$#
The number of inputs
${@:iB:L}
The collection of L inputs starting from iB.
Edit - History - Print - Recent Changes - Search
Page last modified on May 10, 2016, at 07:07 PM